summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaurav Kashyap <skashyap@marvell.com>2024-05-15 14:41:01 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-07-25 09:50:40 +0200
commitb76194fc3b9db2cc90f76bd5d6c6d7c01c1aff40 (patch)
treea0f95cb9fb17cf8a527b1f159f2f736bf8cc7044
parente949e39acdf42bcde269a5deb62d2ee33d388ae1 (diff)
downloadlinux-rpi-b76194fc3b9db2cc90f76bd5d6c6d7c01c1aff40.tar.gz
linux-rpi-b76194fc3b9db2cc90f76bd5d6c6d7c01c1aff40.tar.bz2
linux-rpi-b76194fc3b9db2cc90f76bd5d6c6d7c01c1aff40.zip
scsi: qedf: Set qed_slowpath_params to zero before use
[ Upstream commit 6c3bb589debd763dc4b94803ddf3c13b4fcca776 ] Zero qed_slowpath_params before use. Signed-off-by: Saurav Kashyap <skashyap@marvell.com> Signed-off-by: Nilesh Javali <njavali@marvell.com> Link: https://lore.kernel.org/r/20240515091101.18754-4-skashyap@marvell.com Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
-rw-r--r--drivers/scsi/qedf/qedf_main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/qedf/qedf_main.c b/drivers/scsi/qedf/qedf_main.c
index c97e129194f7..14625e6bc882 100644
--- a/drivers/scsi/qedf/qedf_main.c
+++ b/drivers/scsi/qedf/qedf_main.c
@@ -3472,6 +3472,7 @@ retry_probe:
}
/* Start the Slowpath-process */
+ memset(&slowpath_params, 0, sizeof(struct qed_slowpath_params));
slowpath_params.int_mode = QED_INT_MODE_MSIX;
slowpath_params.drv_major = QEDF_DRIVER_MAJOR_VER;
slowpath_params.drv_minor = QEDF_DRIVER_MINOR_VER;