Author: sginsberg
Date: Thu Jul 17 09:43:36 2008
New Revision: 34564
URL:
http://svn.reactos.org/svn/reactos?rev=34564&view=rev
Log:
- Patch by Cameron Gutman aicommander <at> gmail <dot> com
- Don't release the device spinlock twice if KeSynchronizeExecution returns false
See issue #3520 for more details.
Modified:
trunk/reactos/drivers/storage/scsiport/scsiport.c
Modified: trunk/reactos/drivers/storage/scsiport/scsiport.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/storage/scsiport/s…
==============================================================================
--- trunk/reactos/drivers/storage/scsiport/scsiport.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/storage/scsiport/scsiport.c [iso-8859-1] Thu Jul 17 09:43:36
2008
@@ -2894,8 +2894,12 @@
IoCompleteRequest(Irp, IO_NO_INCREMENT);
}
-
- KeReleaseSpinLockFromDpcLevel(&DeviceExtension->SpinLock);
+ else
+ {
+ /* Release the spinlock only */
+ KeReleaseSpinLockFromDpcLevel(&DeviceExtension->SpinLock);
+ }
+
DPRINT("ScsiPortStartIo() done\n");
}