diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2017-02-21 21:46:37 +0300 |
---|---|---|
committer | Willy Tarreau <w@1wt.eu> | 2017-11-02 10:46:03 +0100 |
commit | 4de0e6b506b3ec5ce4d0517dafff4aea24c6ce73 (patch) | |
tree | cac3971f99837f9a723b81a2e9d14a099bd6458b | |
parent | 40216270c67f9dcc5d73adbdcc65dd317cd4aa1d (diff) | |
download | linux-stable-4de0e6b506b3ec5ce4d0517dafff4aea24c6ce73.tar.gz linux-stable-4de0e6b506b3ec5ce4d0517dafff4aea24c6ce73.tar.bz2 linux-stable-4de0e6b506b3ec5ce4d0517dafff4aea24c6ce73.zip |
scsi: scsi_dh_emc: return success in clariion_std_inquiry()
commit 4d7d39a18b8b81511f0b893b7d2203790bf8a58b upstream.
We accidentally return an uninitialized variable on success.
Fixes: b6ff1b14cdf4 ("[SCSI] scsi_dh: Update EMC handler")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Willy Tarreau <w@1wt.eu>
-rw-r--r-- | drivers/scsi/device_handler/scsi_dh_emc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/device_handler/scsi_dh_emc.c b/drivers/scsi/device_handler/scsi_dh_emc.c index e1c8be06de9d..f94fcda1285d 100644 --- a/drivers/scsi/device_handler/scsi_dh_emc.c +++ b/drivers/scsi/device_handler/scsi_dh_emc.c @@ -464,7 +464,7 @@ static int clariion_prep_fn(struct scsi_device *sdev, struct request *req) static int clariion_std_inquiry(struct scsi_device *sdev, struct clariion_dh_data *csdev) { - int err; + int err = SCSI_DH_OK; char *sp_model; err = send_inquiry_cmd(sdev, 0, csdev); |