1 From stable-bounces@linux.kernel.org Thu Jan 19 14:02:44 2006
2 Message-Id: <200601192201.k0JM141O030124@shell0.pdx.osdl.net>
3 To: theonetruekenny@yahoo.com, Markus.Lidel@shadowconnect.com,
4 stable@kernel.org, mm-commits@vger.kernel.org
6 Date: Thu, 19 Jan 2006 14:03:04 -0800
8 Subject: Fix i2o_scsi oops on abort
10 From: Markus Lidel <Markus.Lidel@shadowconnect.com>
12 >From http://bugzilla.kernel.org/show_bug.cgi?id=5923
14 When a scsi command failed, an oops would result.
16 Back-to-back SMART queries would make the Seagate drives unhappy. The
17 second SMART query would timeout, and the command would be aborted.
19 From: Markus Lidel <Markus.Lidel@shadowconnect.com>
20 Cc: Kenny Simpson <theonetruekenny@yahoo.com>
21 Signed-off-by: Andrew Morton <akpm@osdl.org>
22 Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
24 drivers/message/i2o/i2o_scsi.c | 2 +-
25 1 file changed, 1 insertion(+), 1 deletion(-)
27 --- linux-2.6.15.1.orig/drivers/message/i2o/i2o_scsi.c
28 +++ linux-2.6.15.1/drivers/message/i2o/i2o_scsi.c
29 @@ -729,7 +729,7 @@ static int i2o_scsi_abort(struct scsi_cm
31 writel(i2o_cntxt_list_get_ptr(c, SCpnt), &msg->body[0]);
33 - if (i2o_msg_post_wait(c, m, I2O_TIMEOUT_SCSI_SCB_ABORT))
34 + if (!i2o_msg_post_wait(c, msg, I2O_TIMEOUT_SCSI_SCB_ABORT))