mirror of
https://github.com/reactos/reactos.git
synced 2024-10-02 15:34:13 +00:00
[NTOSKRNL]
Also lock IopSecurityResource during access check in IopParseDevice svn path=/trunk/; revision=65860
This commit is contained in:
parent
938f228699
commit
14cce518d3
|
@ -393,6 +393,9 @@ IopParseDevice(IN PVOID ParseObject,
|
|||
(!(OpenPacket->RelatedFileObject) || (VolumeOpen)) &&
|
||||
!(OpenPacket->Override))
|
||||
{
|
||||
KeEnterCriticalRegion();
|
||||
ExAcquireResourceSharedLite(&IopSecurityResource, TRUE);
|
||||
|
||||
/* Check if a device object is being parsed */
|
||||
if (!RemainingName->Length)
|
||||
{
|
||||
|
@ -504,6 +507,9 @@ IopParseDevice(IN PVOID ParseObject,
|
|||
}
|
||||
}
|
||||
|
||||
ExReleaseResourceLite(&IopSecurityResource);
|
||||
KeLeaveCriticalRegion();
|
||||
|
||||
/* Check if we hold the lock */
|
||||
if (LockHeld)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue