Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Wilck <mwilck@suse.com>2019-10-01 21:02:13 +0200
committerMartin Wilck <mwilck@suse.com>2019-10-01 21:23:04 +0200
commit0133bad93fa2e2e6b4128817d665f53691ff58f7 (patch)
treef5f5cc3cae4e9c9daba24a86d4b936d501eb6da2
parent2f5f497c862988e6d7b8aeb2fd32d4368e62073b (diff)
scsi: scsi_dh_rdac: zero cdb in send_mode_select()
(bsc#1149313). suse-commit: e7cd81e1a4e503d8c930f47c4bcab5f88fedb36f
-rw-r--r--drivers/scsi/device_handler/scsi_dh_rdac.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/scsi/device_handler/scsi_dh_rdac.c b/drivers/scsi/device_handler/scsi_dh_rdac.c
index 65f1fe343c64..5efc959493ec 100644
--- a/drivers/scsi/device_handler/scsi_dh_rdac.c
+++ b/drivers/scsi/device_handler/scsi_dh_rdac.c
@@ -546,6 +546,8 @@ static void send_mode_select(struct work_struct *work)
spin_unlock(&ctlr->ms_lock);
retry:
+ memset(cdb, 0, sizeof(cdb));
+
data_size = rdac_failover_get(ctlr, &list, cdb);
RDAC_LOG(RDAC_LOG_FAILOVER, sdev, "array %s, ctlr %d, "