https://git.reactos.org/?p=reactos.git;a=commitdiff;h=58bb4b31bc47361751c96…
commit 58bb4b31bc47361751c965afbb1ea521f328ed37
Author: Eric Kohl <eric.kohl(a)reactos.org>
AuthorDate: Tue Oct 31 14:09:04 2017 +0100
[STORPORT] Check status code of the call to PortFdoConnectInterrupt().
CORE-13866
---
drivers/storage/port/storport/fdo.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/drivers/storage/port/storport/fdo.c b/drivers/storage/port/storport/fdo.c
index 3c49619b23..92a5a7f9a1 100644
--- a/drivers/storage/port/storport/fdo.c
+++ b/drivers/storage/port/storport/fdo.c
@@ -139,9 +139,13 @@ PortFdoStartMiniport(
return Status;
}
-
+ /* Connect the configured interrupt */
Status = PortFdoConnectInterrupt(DeviceExtension);
-
+ if (!NT_SUCCESS(Status))
+ {
+ DPRINT1("PortFdoConnectInterrupt() failed (Status 0x%08lx)\n",
Status);
+ return Status;
+ }
/* Call the miniports HwInitialize function */
Status = MiniportHwInitialize(&DeviceExtension->Miniport);