Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 15604
b: refs/heads/master
c: 26a6801
h: refs/heads/master
v: v3
  • Loading branch information
Jens Axboe authored and James Bottomley committed Dec 14, 2005
1 parent b2e99e8 commit 661537d
Show file tree
Hide file tree
Showing 2 changed files with 3 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: 493ff4ee7f93a2b53ed60197e05aa145eec8f8f5
refs/heads/master: 26a68019c86e1d1782984a7a5babff762cde1501
3 changes: 2 additions & 1 deletion trunk/drivers/scsi/scsi_lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -884,7 +884,8 @@ void scsi_io_completion(struct scsi_cmnd *cmd, unsigned int good_bytes,
* system where READ CAPACITY failed, we may have read
* past the end of the disk.
*/
if (cmd->device->use_10_for_rw &&
if ((cmd->device->use_10_for_rw &&
sshdr.asc == 0x20 && sshdr.ascq == 0x00) &&
(cmd->cmnd[0] == READ_10 ||
cmd->cmnd[0] == WRITE_10)) {
cmd->device->use_10_for_rw = 0;
Expand Down

0 comments on commit 661537d

Please sign in to comment.