]> www.infradead.org Git - users/jedix/linux-maple.git/commit
scsi: lpfc: Initialize status local variable in lpfc_sli4_repost_sgl_list()
authorJustin Tee <justin.tee@broadcom.com>
Wed, 31 Jan 2024 18:50:56 +0000 (10:50 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 6 Feb 2024 01:51:34 +0000 (20:51 -0500)
commit3d0f9342ae200aa1ddc4d6e7a573c6f8f068d994
treedbabde4186a43ef61dec360fd7047abf3dd1d54f
parent6613476e225e090cc9aad49be7fa504e290dd33d
scsi: lpfc: Initialize status local variable in lpfc_sli4_repost_sgl_list()

A static code analyzer tool indicates that the local variable called status
in the lpfc_sli4_repost_sgl_list() routine could be used to print garbage
uninitialized values in the routine's log message.

Fix by initializing to zero.

Signed-off-by: Justin Tee <justin.tee@broadcom.com>
Link: https://lore.kernel.org/r/20240131185112.149731-2-justintee8345@gmail.com
Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_sli.c