Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 115753
b: refs/heads/master
c: 8bfa247
h: refs/heads/master
i:
  115751: 759719f
v: v3
  • Loading branch information
Alan Stern authored and Greg Kroah-Hartman committed Oct 17, 2008
1 parent 113b70a commit 7e4aee9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3948f0e0c999a6201e9898bb8fbe3c6cc1199276
refs/heads/master: 8bfa24727087d7252f9ecfb5fea2dfc92d797fbd
2 changes: 1 addition & 1 deletion trunk/drivers/usb/storage/transport.c
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,7 @@ void usb_stor_invoke_transport(struct scsi_cmnd *srb, struct us_data *us)
}

/* Did we transfer less than the minimum amount required? */
if (srb->result == SAM_STAT_GOOD &&
if ((srb->result == SAM_STAT_GOOD || srb->sense_buffer[2] == 0) &&
scsi_bufflen(srb) - scsi_get_resid(srb) < srb->underflow)
srb->result = (DID_ERROR << 16) | (SUGGEST_RETRY << 24);

Expand Down

0 comments on commit 7e4aee9

Please sign in to comment.