mirror of
https://github.com/reactos/reactos.git
synced 2024-10-15 13:45:58 +00:00
Do not assume ReleaseSpinLock == LowerIrql.
svn path=/trunk/; revision=26242
This commit is contained in:
parent
4b824a0114
commit
982ab11661
|
@ -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 */
|
||||||
|
|
Loading…
Reference in a new issue