Commit 92dc2e37 authored by Martins Krikis's avatar Martins Krikis Committed by Jeff Garzik

[PATCH] fix an oops in ata_to_sense_error

Signed-off-by: default avatarJeff Garzik <jgarzik@pobox.com>
parent c923dd8b
......@@ -282,7 +282,8 @@ void ata_to_sense_error(struct ata_queued_cmd *qc, u8 drv_stat)
/* No immediate match */
if(err)
printk(KERN_DEBUG "ata%u: no sense translation for 0x%02x\n", qc->ap->id, err);
i = 0;
/* Fall back to interpreting status bits */
while(stat_table[i][0] != 0xFF)
{
......
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