kernel_samsung_a53x/drivers/scsi/lpfc
Justin Tee e266585e05 scsi: lpfc: Fix possible memory leak in lpfc_rcv_padisc()
[ Upstream commit 2ae917d4bcab80ab304b774d492e2fcd6c52c06b ]

The call to lpfc_sli4_resume_rpi() in lpfc_rcv_padisc() may return an
unsuccessful status.  In such cases, the elsiocb is not issued, the
completion is not called, and thus the elsiocb resource is leaked.

Check return value after calling lpfc_sli4_resume_rpi() and conditionally
release the elsiocb resource.

Signed-off-by: Justin Tee <justin.tee@broadcom.com>
Link: https://lore.kernel.org/r/20240131185112.149731-3-justintee8345@gmail.com
Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-19 09:23:14 +01:00
..
lpfc.h scsi: lpfc: Fix possible file string name overflow when updating firmware 2024-11-18 12:13:12 +01:00
lpfc_attr.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lpfc_attr.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lpfc_bsg.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lpfc_bsg.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lpfc_compat.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lpfc_crtn.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lpfc_ct.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lpfc_debugfs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lpfc_debugfs.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lpfc_disc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lpfc_els.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lpfc_hbadisc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lpfc_hw.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lpfc_hw4.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lpfc_ids.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lpfc_init.c scsi: lpfc: Fix possible file string name overflow when updating firmware 2024-11-18 12:13:12 +01:00
lpfc_logmsg.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lpfc_mbox.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lpfc_mem.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lpfc_nl.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lpfc_nportdisc.c scsi: lpfc: Fix possible memory leak in lpfc_rcv_padisc() 2024-11-19 09:23:14 +01:00
lpfc_nvme.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lpfc_nvme.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lpfc_nvmet.c scsi: lpfc: Correct size for wqe for memset() 2024-11-19 09:22:43 +01:00
lpfc_scsi.c scsi: lpfc: Use unsigned type for num_sge 2024-11-18 22:25:34 +01:00
lpfc_scsi.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lpfc_sli.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lpfc_sli.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lpfc_sli4.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lpfc_version.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lpfc_vport.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lpfc_vport.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00