[USBSTOR]
authorCameron Gutman <aicommander@gmail.com>
Mon, 30 Jan 2012 04:18:59 +0000 (04:18 +0000)
committerCameron Gutman <aicommander@gmail.com>
Mon, 30 Jan 2012 04:18:59 +0000 (04:18 +0000)
- Handle SRB_FUNCTION_SHUTDOWN successfully (failing it results in a stack overflow due to a bug in disk.sys)
- Fixes the crash during shutdown after using a USB drive

svn path=/branches/usb-bringup-trunk/; revision=55315

drivers/usb/usbstor/disk.c

index 5a776d4..6e4fa0d 100644 (file)
@@ -168,10 +168,11 @@ USBSTOR_HandleInternalDeviceControl(
             break;
         }
 
+        case SRB_FUNCTION_SHUTDOWN:
         case SRB_FUNCTION_FLUSH:
         case SRB_FUNCTION_FLUSH_QUEUE:
         {
-            DPRINT1("SRB_FUNCTION_FLUSH / SRB_FUNCTION_FLUSH_QUEUE\n");
+            DPRINT1("SRB_FUNCTION_FLUSH / SRB_FUNCTION_FLUSH_QUEUE / SRB_FUNCTION_SHUTDOWN\n");
 
             //
             // flush all requests