Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 181291
b: refs/heads/master
c: fa4698f
h: refs/heads/master
i:
  181289: 740bcfd
  181287: cf22f5d
v: v3
  • Loading branch information
Martin K. Petersen authored and James Bottomley committed Feb 9, 2010
1 parent 394161e commit 3428aba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 13 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: d44a6d2bbffd9e5c87f0a78cbe9c089e21289162
refs/heads/master: fa4698fcf59c3bd01c171e5e558bae9e8eb396f1
15 changes: 3 additions & 12 deletions trunk/drivers/scsi/sd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1196,19 +1196,10 @@ static int sd_done(struct scsi_cmnd *SCpnt)
SCpnt->result = 0;
memset(SCpnt->sense_buffer, 0, SCSI_SENSE_BUFFERSIZE);
break;
case ABORTED_COMMAND:
if (sshdr.asc == 0x10) { /* DIF: Disk detected corruption */
scsi_print_result(SCpnt);
scsi_print_sense("sd", SCpnt);
case ABORTED_COMMAND: /* DIF: Target detected corruption */
case ILLEGAL_REQUEST: /* DIX: Host detected corruption */
if (sshdr.asc == 0x10)
good_bytes = sd_completed_bytes(SCpnt);
}
break;
case ILLEGAL_REQUEST:
if (sshdr.asc == 0x10) { /* DIX: HBA detected corruption */
scsi_print_result(SCpnt);
scsi_print_sense("sd", SCpnt);
good_bytes = sd_completed_bytes(SCpnt);
}
break;
default:
break;
Expand Down

0 comments on commit 3428aba

Please sign in to comment.