- Release the acquired spinlock in IoUnregisterShutdownNotification(), spotted by Cameron Gutman.

svn path=/trunk/; revision=33961
This commit is contained in:
Aleksey Bragin 2008-06-14 08:16:22 +00:00
parent ddd1764f85
commit 17f5df55c4

View file

@ -1359,6 +1359,9 @@ IoUnregisterShutdownNotification(PDEVICE_OBJECT DeviceObject)
NextEntry = NextEntry->Flink;
}
/* Release the shutdown lock */
KeReleaseSpinLock(&ShutdownListLock, OldIrql);
/* Now remove the flag */
DeviceObject->Flags &= ~DO_SHUTDOWN_REGISTERED;
}