mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 07:52:56 +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
1 changed files with 1 additions and 4 deletions
|
@ -1158,12 +1158,9 @@ IopFreeDeviceNode(PDEVICE_NODE DeviceNode)
|
||||||
|
|
||||||
/* All children must be deleted before a parent is deleted */
|
/* All children must be deleted before a parent is deleted */
|
||||||
ASSERT(!DeviceNode->Child);
|
ASSERT(!DeviceNode->Child);
|
||||||
|
|
||||||
KeAcquireSpinLock(&IopDeviceTreeLock, &OldIrql);
|
|
||||||
|
|
||||||
ASSERT(DeviceNode->PhysicalDeviceObject);
|
ASSERT(DeviceNode->PhysicalDeviceObject);
|
||||||
|
|
||||||
ObDereferenceObject(DeviceNode->PhysicalDeviceObject);
|
KeAcquireSpinLock(&IopDeviceTreeLock, &OldIrql);
|
||||||
|
|
||||||
/* Get previous sibling */
|
/* Get previous sibling */
|
||||||
if (DeviceNode->Parent && DeviceNode->Parent->Child != DeviceNode)
|
if (DeviceNode->Parent && DeviceNode->Parent->Child != DeviceNode)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue