From 75676e7e490764ec2e123be703f540be68f51b22 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Wed, 25 Jan 2012 06:09:24 +0000 Subject: [PATCH] [USBSTOR] - Use the correct USBD_TRANSFER_DIRECTION value for write operations svn path=/branches/usb-bringup-trunk/; revision=55169 --- drivers/usb/usbstor/scsi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/usbstor/scsi.c b/drivers/usb/usbstor/scsi.c index 62c25dec959..5e80749521f 100644 --- a/drivers/usb/usbstor/scsi.c +++ b/drivers/usb/usbstor/scsi.c @@ -447,7 +447,7 @@ USBSTOR_CBWCompletionRoutine( NULL, Context->TransferBufferMDL, Context->TransferDataLength, - USBD_TRANSFER_DIRECTION_IN | USBD_SHORT_TRANSFER_OK, + ((Code == SCSIOP_WRITE) ? USBD_TRANSFER_DIRECTION_OUT : USBD_TRANSFER_DIRECTION_IN) | USBD_SHORT_TRANSFER_OK, NULL); // -- 2.17.1