[PATCH] fix an oops in ata_to_sense_error

Linux Kernel Mailing List <[email protected]>
Newsgroups gmane.linux.kernel.commits.2-4
Message-ID <[email protected]>
ChangeSet 1.1568.1.4, 2005/01/28 22:30:08-05:00, [email protected]

	[PATCH] fix an oops in ata_to_sense_error
	
	Signed-off-by: Jeff Garzik <[email protected]>



 libata-scsi.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)


diff -Nru a/drivers/scsi/libata-scsi.c b/drivers/scsi/libata-scsi.c
--- a/drivers/scsi/libata-scsi.c	2005-01-30 15:37:06 -08:00
+++ b/drivers/scsi/libata-scsi.c	2005-01-30 15:37:06 -08:00
@@ -283,7 +283,8 @@
 	/* 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)
 	{
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.