diff options
| author | 2022-04-12 15:19:51 -0700 | |
|---|---|---|
| committer | 2022-04-18 22:48:45 -0400 | |
| commit | 672d1cb40551ea9c95efad43ab6d45e4ab4e015f (patch) | |
| tree | f6c5e432b50298e05ca0db3cd68ba0eae979e12c /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | scsi: lpfc: Fix null pointer dereference after failing to issue FLOGI and PLOGI (diff) | |
scsi: lpfc: Protect memory leak for NPIV ports sending PLOGI_RJT
There is a potential memory leak in lpfc_ignore_els_cmpl() and
lpfc_els_rsp_reject() that was allocated from NPIV PLOGI_RJT
(lpfc_rcv_plogi()'s login_mbox).
Check if cmdiocb->context_un.mbox was allocated in lpfc_ignore_els_cmpl(),
and then free it back to phba->mbox_mem_pool along with mbox->ctx_buf for
service parameters.
For lpfc_els_rsp_reject() failure, free both the ctx_buf for service
parameters and the login_mbox.
Link: https://lore.kernel.org/r/20220412222008.126521-10-jsmart2021@gmail.com
Co-developed-by: Justin Tee <justin.tee@broadcom.com>
Signed-off-by: Justin Tee <justin.tee@broadcom.com>
Signed-off-by: James Smart <jsmart2021@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions
