Commit 716041cc authored by Jens Axboe's avatar Jens Axboe Committed by Patrick Mochel

[PATCH] Scsi sense buffer thinko

Noticed by Peter Chubb.

SCpnt->sense_buffer[0] has to _equal_ 0xf0 for the sense to be valid,
not vice versa.
parent d74cfca3
......@@ -629,7 +629,7 @@ static void sd_rw_intr(Scsi_Cmnd * SCpnt)
/* An error occurred */
if (driver_byte(result) != 0 && /* An error occured */
SCpnt->sense_buffer[0] != 0xF0) { /* Sense data is valid */
SCpnt->sense_buffer[0] == 0xF0) { /* Sense data is valid */
switch (SCpnt->sense_buffer[2]) {
case MEDIUM_ERROR:
error_sector = (SCpnt->sense_buffer[3] << 24) |
......
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