mirror of
https://github.com/reactos/reactos.git
synced 2024-08-07 19:58:21 +00:00
[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:
parent
2ec26ff430
commit
295501f398
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue