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 <[email protected]> Signed-off-by: Nilesh Javali <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Martin K. Petersen <[email protected]>
1 parent 78e8847 commit 6c3bb58

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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)