[NTOSKRNL]

Also lock IopSecurityResource during access check in IopParseDevice

svn path=/trunk/; revision=65860
This commit is contained in:
Pierre Schweitzer 2014-12-28 13:15:14 +00:00
parent 938f228699
commit 14cce518d3

View file

@ -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)
{