Do not assume ReleaseSpinLock == LowerIrql.

svn path=/trunk/; revision=26242
This commit is contained in:
Dmitry Gorbachev 2007-04-01 22:04:26 +00:00
parent 4b824a0114
commit 982ab11661

View file

@ -710,7 +710,7 @@ SpiInitOpenKeys(PCONFIGURATION_INFO ConfigInfo, PUNICODE_STRING RegistryPath)
if (!NT_SUCCESS(Status)) 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; ConfigInfo->ServiceKey = NULL;
} }
@ -2426,7 +2426,7 @@ ScsiPortDispatchScsi(IN PDEVICE_OBJECT DeviceObject,
{ {
/* Get next logical unit request */ /* Get next logical unit request */
SpiGetNextRequestFromLun(DeviceExtension, LunExtension); SpiGetNextRequestFromLun(DeviceExtension, LunExtension);
KeLowerIrql(Irql); KeReleaseSpinLock(&DeviceExtension->SpinLock, Irql);
} }
else else
{ {
@ -3071,8 +3071,8 @@ SpiSendInquiry (IN PDEVICE_OBJECT DeviceObject,
/* Process the request */ /* Process the request */
SpiGetNextRequestFromLun(DeviceObject->DeviceExtension, LunExtension); SpiGetNextRequestFromLun(DeviceObject->DeviceExtension, LunExtension);
/* Lower irql back */ /* Release spinlock */
KeLowerIrql(Irql); KeReleaseSpinLock(&DeviceExtension->SpinLock, Irql);
} }
/* Check if data overrun happened */ /* Check if data overrun happened */