From 17f5df55c406491a363db72019e718b3896890c8 Mon Sep 17 00:00:00 2001 From: Aleksey Bragin Date: Sat, 14 Jun 2008 08:16:22 +0000 Subject: [PATCH] - Release the acquired spinlock in IoUnregisterShutdownNotification(), spotted by Cameron Gutman. svn path=/trunk/; revision=33961 --- reactos/ntoskrnl/io/iomgr/device.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/reactos/ntoskrnl/io/iomgr/device.c b/reactos/ntoskrnl/io/iomgr/device.c index 3e2f6796c14..1fa5d0d6721 100644 --- a/reactos/ntoskrnl/io/iomgr/device.c +++ b/reactos/ntoskrnl/io/iomgr/device.c @@ -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; }