diff options
| author | James Smart <[email protected]> | 2022-04-12 15:19:51 -0700 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2022-04-18 22:48:45 -0400 |
| commit | 672d1cb40551ea9c95efad43ab6d45e4ab4e015f (patch) | |
| tree | f6c5e432b50298e05ca0db3cd68ba0eae979e12c /tools/perf/scripts/python | |
| parent | 577a942df3de2666f6947bdd3a5c9e8d30073424 (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/[email protected]
Co-developed-by: Justin Tee <[email protected]>
Signed-off-by: Justin Tee <[email protected]>
Signed-off-by: James Smart <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions