diff options
author | Justin Tee <[email protected]> | 2024-01-31 10:50:57 -0800 |
---|---|---|
committer | Martin K. Petersen <[email protected]> | 2024-02-05 20:51:34 -0500 |
commit | 2ae917d4bcab80ab304b774d492e2fcd6c52c06b (patch) | |
tree | 9ae99253f2372555b63606d4dfae242ba799274d /tools/perf/scripts/python/syscall-counts-by-pid.py | |
parent | 3d0f9342ae200aa1ddc4d6e7a573c6f8f068d994 (diff) |
scsi: lpfc: Fix possible memory leak in lpfc_rcv_padisc()
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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Himanshu Madhani <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions