Author: cgutman
Date: Mon Jan 30 04:18:59 2012
New Revision: 55315
URL:
http://svn.reactos.org/svn/reactos?rev=55315&view=rev
Log:
[USBSTOR]
- 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
Modified:
branches/usb-bringup-trunk/drivers/usb/usbstor/disk.c
Modified: branches/usb-bringup-trunk/drivers/usb/usbstor/disk.c
URL:
http://svn.reactos.org/svn/reactos/branches/usb-bringup-trunk/drivers/usb/u…
==============================================================================
--- branches/usb-bringup-trunk/drivers/usb/usbstor/disk.c [iso-8859-1] (original)
+++ branches/usb-bringup-trunk/drivers/usb/usbstor/disk.c [iso-8859-1] Mon Jan 30 04:18:59
2012
@@ -168,10 +168,11 @@
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