[NTOSKRNL]

- Remove an extra deference to the device object that happened inside the IopDeleteDevice function (called by Ob when the reference count is 0)

svn path=/trunk/; revision=56183
This commit is contained in:
Cameron Gutman 2012-03-18 21:38:45 +00:00
parent 2ec26ff430
commit 295501f398

View file

@ -1158,12 +1158,9 @@ IopFreeDeviceNode(PDEVICE_NODE DeviceNode)
/* All children must be deleted before a parent is deleted */
ASSERT(!DeviceNode->Child);
KeAcquireSpinLock(&IopDeviceTreeLock, &OldIrql);
ASSERT(DeviceNode->PhysicalDeviceObject);
ObDereferenceObject(DeviceNode->PhysicalDeviceObject);
KeAcquireSpinLock(&IopDeviceTreeLock, &OldIrql);
/* Get previous sibling */
if (DeviceNode->Parent && DeviceNode->Parent->Child != DeviceNode)