]> git.hungrycats.org Git - linux/commitdiff
scsi: qedf: Set qed_slowpath_params to zero before use
authorSaurav Kashyap <skashyap@marvell.com>
Wed, 15 May 2024 09:11:01 +0000 (14:41 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Jul 2024 07:53:19 +0000 (09:53 +0200)
[ 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>
drivers/scsi/qedf/qedf_main.c

index c98cc666e3e9c480697a469a80956f50af0e39fc..b97a8712d3f66dac302dced4a85b2d76ad99429c 100644 (file)
@@ -3473,6 +3473,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;