diff options
author | Zhen Lei <[email protected]> | 2024-10-26 20:57:11 +0800 |
---|---|---|
committer | Martin K. Petersen <[email protected]> | 2024-11-06 20:46:36 -0500 |
commit | 95bbdca4999bc59a72ebab01663d421d6ce5775d (patch) | |
tree | 96db283053c357bfffad606f72307c0ae8a96063 /tools/perf/scripts/python/event_analyzing_sample.py | |
parent | c62c30429db3eb4ced35c7fcf6f04a61ce3a01bb (diff) |
scsi: qedi: Fix a possible memory leak in qedi_alloc_and_init_sb()
Hook "qedi_ops->common->sb_init = qed_sb_init" does not release the DMA
memory sb_virt when it fails. Add dma_free_coherent() to free it. This
is the same way as qedr_alloc_mem_sb() and qede_alloc_mem_sb().
Fixes: ace7f46ba5fd ("scsi: qedi: Add QLogic FastLinQ offload iSCSI driver framework.")
Signed-off-by: Zhen Lei <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions