Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 292974
b: refs/heads/master
c: 47ac56d
h: refs/heads/master
v: v3
  • Loading branch information
Mike Snitzer authored and James Bottomley committed Feb 19, 2012
1 parent 04f5903 commit bba49ee
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 89730393f260aef7fce9f6fd475da148517a4c5c
refs/heads/master: 47ac56db133cb0b6cf3c8b156db854c158fb9dae
8 changes: 8 additions & 0 deletions trunk/drivers/scsi/scsi_error.c
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,14 @@ static int scsi_check_sense(struct scsi_cmnd *scmd)
return TARGET_ERROR;

case ILLEGAL_REQUEST:
if (sshdr.asc == 0x20 || /* Invalid command operation code */
sshdr.asc == 0x21 || /* Logical block address out of range */
sshdr.asc == 0x24 || /* Invalid field in cdb */
sshdr.asc == 0x26) { /* Parameter value invalid */
return TARGET_ERROR;
}
return SUCCESS;

default:
return SUCCESS;
}
Expand Down

0 comments on commit bba49ee

Please sign in to comment.