[USBSTOR]
authorJohannes Anderwald <johannes.anderwald@reactos.org>
Thu, 25 Oct 2012 17:17:25 +0000 (17:17 +0000)
committerJohannes Anderwald <johannes.anderwald@reactos.org>
Thu, 25 Oct 2012 17:17:25 +0000 (17:17 +0000)
- Don't flush srb queue because the storage stack is not ready for it yet
- Fixes crash during shutdown

svn path=/trunk/; revision=57617

reactos/drivers/usb/usbstor/disk.c

index 8a11d82..8883591 100644 (file)
@@ -174,11 +174,13 @@ USBSTOR_HandleInternalDeviceControl(
         {
             DPRINT1("SRB_FUNCTION_FLUSH / SRB_FUNCTION_FLUSH_QUEUE / SRB_FUNCTION_SHUTDOWN\n");
 
         {
             DPRINT1("SRB_FUNCTION_FLUSH / SRB_FUNCTION_FLUSH_QUEUE / SRB_FUNCTION_SHUTDOWN\n");
 
+            // HACK: don't flush pending requests
+#if 0       // we really need a proper storage stack
             //
             // wait for pending requests to finish
             //
             USBSTOR_QueueWaitForPendingRequests(PDODeviceExtension->LowerDeviceObject);
             //
             // wait for pending requests to finish
             //
             USBSTOR_QueueWaitForPendingRequests(PDODeviceExtension->LowerDeviceObject);
-
+#endif
             //
             // set status success
             //
             //
             // set status success
             //