Skip to content

Commit 6c3bb58

Browse files
Saurav Kashyapmartinkpetersen
authored andcommitted
scsi: qedf: Set qed_slowpath_params to zero before use
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>
1 parent 78e8847 commit 6c3bb58

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/scsi/qedf/qedf_main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3473,6 +3473,7 @@ static int __qedf_probe(struct pci_dev *pdev, int mode)
34733473
}
34743474

34753475
/* Start the Slowpath-process */
3476+
memset(&slowpath_params, 0, sizeof(struct qed_slowpath_params));
34763477
slowpath_params.int_mode = QED_INT_MODE_MSIX;
34773478
slowpath_params.drv_major = QEDF_DRIVER_MAJOR_VER;
34783479
slowpath_params.drv_minor = QEDF_DRIVER_MINOR_VER;

0 commit comments

Comments
 (0)