2005-01-28 17:48:10

by Martins Krikis

[permalink] [raw]
Subject: [PATCH, 2.4] fix an oops in ata_to_sense_error

Jeff,

This fixes an occasional oops in the libata-scsi code.

Martins Krikis

--- linux-2.4.29/drivers/scsi/libata-scsi.c 2005-01-28 12:07:56.000000000 -0500
+++ linux-2.4.29-iswraid/drivers/scsi/libata-scsi.c 2005-01-28 12:14:43.000000000 -0500
@@ -283,7 +283,8 @@ void ata_to_sense_error(struct ata_queue
/* 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)
{




2005-01-29 01:31:07

by Jeff Garzik

[permalink] [raw]
Subject: Re: [PATCH, 2.4] fix an oops in ata_to_sense_error

Martins Krikis wrote:
> Jeff,
>
> This fixes an occasional oops in the libata-scsi code.

will apply, thanks.


2005-01-29 01:32:29

by Jeff Garzik

[permalink] [raw]
Subject: Re: [PATCH, 2.4] fix an oops in ata_to_sense_error

Martins Krikis wrote:
> Jeff,
>
> This fixes an occasional oops in the libata-scsi code.
>
> Martins Krikis
>
> --- linux-2.4.29/drivers/scsi/libata-scsi.c 2005-01-28 12:07:56.000000000 -0500
> +++ linux-2.4.29-iswraid/drivers/scsi/libata-scsi.c 2005-01-28 12:14:43.000000000 -0500


BTW, don't forget your signed-off-by line when submitting emails...

http://linux.yyz.us/patch-format.html

Jeff