Author: dgorbachev
Date: Mon Apr 2 02:04:26 2007
New Revision: 26242
URL:
http://svn.reactos.org/svn/reactos?rev=26242&view=rev
Log:
Do not assume ReleaseSpinLock == LowerIrql.
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 (original)
+++ trunk/reactos/drivers/storage/scsiport/scsiport.c Mon Apr 2 02:04:26 2007
@@ -710,7 +710,7 @@
if (!NT_SUCCESS(Status))
{
- DPRINT1("Unable to open driver's registry key %ws, status
0x%08x\n", RegistryPath, Status);
+ DPRINT1("Unable to open driver's registry key %wZ, status
0x%08x\n", RegistryPath, Status);
ConfigInfo->ServiceKey = NULL;
}
@@ -2426,7 +2426,7 @@
{
/* Get next logical unit request */
SpiGetNextRequestFromLun(DeviceExtension, LunExtension);
- KeLowerIrql(Irql);
+ KeReleaseSpinLock(&DeviceExtension->SpinLock, Irql);
}
else
{
@@ -3071,8 +3071,8 @@
/* Process the request */
SpiGetNextRequestFromLun(DeviceObject->DeviceExtension,
LunExtension);
- /* Lower irql back */
- KeLowerIrql(Irql);
+ /* Release spinlock */
+ KeReleaseSpinLock(&DeviceExtension->SpinLock, Irql);
}
/* Check if data overrun happened */