]> git.ipfire.org Git - thirdparty/linux.git/commit
scsi: lpfc: Cleanup error exit paths in lpfc_fdmi_cmd() and associated messages
authorJustin Tee <justin.tee@broadcom.com>
Thu, 12 Feb 2026 21:30:02 +0000 (13:30 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 24 Feb 2026 18:06:52 +0000 (13:06 -0500)
commit6b0bcf4b6430688984fe1ee69fce7165a3e24b92
treedc8899b06e5971c083c6cc1537e6d3a6ec90b65f
parentf6bfb8d149336661bb80e62980da9a45b920403c
scsi: lpfc: Cleanup error exit paths in lpfc_fdmi_cmd() and associated messages

Error labels in lpfc_fdmi_cmd() accidentally return success status and
can potentially leak memory.  Change error exit path status to return a
non-zero value using a common exit path for failure cases. The error
path also frees allocated memory and provides logging.

Signed-off-by: Justin Tee <justin.tee@broadcom.com>
Link: https://patch.msgid.link/20260212213008.149873-8-justintee8345@gmail.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_ct.c