projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
221ed88
)
[NTOSKRNL] On device map freeing, make directory object temporary again
author
Pierre Schweitzer
<pierre@reactos.org>
Sat, 1 Jun 2019 11:59:13 +0000
(13:59 +0200)
committer
Pierre Schweitzer
<pierre@reactos.org>
Sat, 1 Jun 2019 11:59:13 +0000
(13:59 +0200)
ntoskrnl/ob/devicemap.c
patch
|
blob
|
history
diff --git
a/ntoskrnl/ob/devicemap.c
b/ntoskrnl/ob/devicemap.c
index
8cda474
..
dd501f1
100644
(file)
--- a/
ntoskrnl/ob/devicemap.c
+++ b/
ntoskrnl/ob/devicemap.c
@@
-189,7
+189,8
@@
ObfDereferenceDeviceMap(IN PDEVICE_MAP DeviceMap)
KeReleaseGuardedMutex(&ObpDeviceMapLock);
/* Dereference the DOS Devices Directory and free the Device Map */
KeReleaseGuardedMutex(&ObpDeviceMapLock);
/* Dereference the DOS Devices Directory and free the Device Map */
- ObDereferenceObject(DeviceMap->DosDevicesDirectory );
+ ObMakeTemporaryObject(DeviceMap->DosDevicesDirectory);
+ ObDereferenceObject(DeviceMap->DosDevicesDirectory);
ExFreePoolWithTag(DeviceMap, 'mDbO');
}
ExFreePoolWithTag(DeviceMap, 'mDbO');
}