mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
[FREELDR] Check HwInterrupt return value
_Must_inspect_result_ is there for a reason CORE-17637
This commit is contained in:
parent
8a68820429
commit
900b6a5d56
1 changed files with 10 additions and 2 deletions
|
@ -139,7 +139,11 @@ SpiSendSynchronousSrb(
|
|||
while (!(DeviceExtension->InterruptFlags & SCSI_PORT_NEXT_REQUEST_READY))
|
||||
{
|
||||
KeStallExecutionProcessor(100 * 1000);
|
||||
DeviceExtension->HwInterrupt(DeviceExtension->MiniPortDeviceExtension);
|
||||
if (!DeviceExtension->HwInterrupt(DeviceExtension->MiniPortDeviceExtension))
|
||||
{
|
||||
ExFreePool(Srb);
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
DeviceExtension->InterruptFlags &= ~SCSI_PORT_NEXT_REQUEST_READY;
|
||||
|
@ -157,7 +161,11 @@ SpiSendSynchronousSrb(
|
|||
while (Srb->SrbFlags & SRB_FLAGS_IS_ACTIVE)
|
||||
{
|
||||
KeStallExecutionProcessor(100 * 1000);
|
||||
DeviceExtension->HwInterrupt(DeviceExtension->MiniPortDeviceExtension);
|
||||
if (!DeviceExtension->HwInterrupt(DeviceExtension->MiniPortDeviceExtension))
|
||||
{
|
||||
ExFreePool(Srb);
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
ret = SRB_STATUS(Srb->SrbStatus) == SRB_STATUS_SUCCESS;
|
||||
|
|
Loading…
Reference in a new issue