[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[dm-devel] [PATCH] scsi_dh_rdac: Fix for returning correct mode select return info
- From: "Moger, Babu" <Babu Moger lsi com>
- To: Linux SCSI Mailing list <linux-scsi vger kernel org>
- Cc: "Dachepalli, Sudhir" <Sudhir Dachepalli lsi com>, device-mapper development <dm-devel redhat com>, "Chauhan, Vijay" <Vijay Chauhan lsi com>, "Stankey, Robert" <Robert Stankey lsi com>
- Subject: [dm-devel] [PATCH] scsi_dh_rdac: Fix for returning correct mode select return info
- Date: Mon, 24 Aug 2009 17:29:36 -0600
This patch fixes the problem with mode_select_handle_sense when retuning mode select completion status. I have removed the default initialization of return code to SCSI_DH_OK. Now it is initialized to SCSI_DH_IO.
Signed-off-by: Babu Moger <babu moger lsi com>
---
--- linux-2.6.31-rc5/drivers/scsi/device_handler/scsi_dh_rdac.c.orig 2009-08-22 06:20:45.000000000 -0500
+++ linux-2.6.31-rc5/drivers/scsi/device_handler/scsi_dh_rdac.c 2009-08-22 06:18:36.000000000 -0500
@@ -455,8 +455,6 @@ static int mode_select_handle_sense(stru
if (!ret)
goto done;
- err = SCSI_DH_OK;
-
switch (sense_hdr.sense_key) {
case NO_SENSE:
case ABORTED_COMMAND:
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]