summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--drivers/usb/storage/transport.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/usb/storage/transport.c b/drivers/usb/storage/transport.c
index 8c3baaabfb02..872d8773c5ac 100644
--- a/drivers/usb/storage/transport.c
+++ b/drivers/usb/storage/transport.c
@@ -348,7 +348,10 @@ unsigned int usb_stor_transfer_length(Scsi_Cmnd *srb)
* violates this invariant is a bug. In the hopes of removing
* all the complex logic above, let's find them and eliminate them.
*/
- BUG_ON(len != srb->request_bufflen);
+ if (len != srb->request_bufflen) {
+ printk("USB len=%d, request_bufflen=%d\n", len, srb->request_bufflen);
+ show_trace(NULL);
+ }
return len;
}