[STORPORT] Check status code of the call to PortFdoConnectInterrupt().
authorEric Kohl <eric.kohl@reactos.org>
Tue, 31 Oct 2017 13:09:04 +0000 (14:09 +0100)
committerEric Kohl <eric.kohl@reactos.org>
Tue, 31 Oct 2017 13:11:36 +0000 (14:11 +0100)
CORE-13866

drivers/storage/port/storport/fdo.c

index 3c49619..92a5a7f 100644 (file)
@@ -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);