Commit b4219680 authored by Linus Torvalds's avatar Linus Torvalds

Don't BUG_ON() SCSI length confusion. Print out the problem

and the call trace instead.
parent 5dfd412e
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment