From 8d0d41174e0fbe6194db66b6c5845520b4164344 Mon Sep 17 00:00:00 2001 From: Markus Lidel Date: Thu, 19 Jan 2006 14:03:04 -0800 Subject: [PATCH] Fix i2o_scsi oops on abort >From http://bugzilla.kernel.org/show_bug.cgi?id=5923 When a scsi command failed, an oops would result. Back-to-back SMART queries would make the Seagate drives unhappy. The second SMART query would timeout, and the command would be aborted. From: Markus Lidel Cc: Kenny Simpson Signed-off-by: Andrew Morton Signed-off-by: Greg Kroah-Hartman --- drivers/message/i2o/i2o_scsi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/message/i2o/i2o_scsi.c b/drivers/message/i2o/i2o_scsi.c index 9f1744c3933b..1c5c6c753ffc 100644 --- a/drivers/message/i2o/i2o_scsi.c +++ b/drivers/message/i2o/i2o_scsi.c @@ -729,7 +729,7 @@ static int i2o_scsi_abort(struct scsi_cmnd *SCpnt) &msg->u.head[1]); writel(i2o_cntxt_list_get_ptr(c, SCpnt), &msg->body[0]); - if (i2o_msg_post_wait(c, m, I2O_TIMEOUT_SCSI_SCB_ABORT)) + if (!i2o_msg_post_wait(c, msg, I2O_TIMEOUT_SCSI_SCB_ABORT)) status = SUCCESS; return status; -- cgit v1.2.3