summaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorJustin Tee <justin.tee@broadcom.com>2024-01-31 10:50:57 -0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-04-13 12:50:15 +0200
commitedf82aa7e9eb864a09229392054d131b34a5c9e8 (patch)
treec1c2ba7680e0a079e3439c62054412437d60a0c2 /drivers/net
parent13b33feb2ebddc2b1aa607f553566b18a4af1d76 (diff)
downloadlinux-stable-edf82aa7e9eb864a09229392054d131b34a5c9e8.tar.gz
linux-stable-edf82aa7e9eb864a09229392054d131b34a5c9e8.tar.bz2
linux-stable-edf82aa7e9eb864a09229392054d131b34a5c9e8.zip
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>
Diffstat (limited to 'drivers/net')
0 files changed, 0 insertions, 0 deletions