diff options
author | Zhen Lei <thunder.leizhen@huawei.com> | 2024-10-26 15:57:11 +0300 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2024-11-07 04:46:36 +0300 |
commit | 95bbdca4999bc59a72ebab01663d421d6ce5775d (patch) | |
tree | 96db283053c357bfffad606f72307c0ae8a96063 /tools/perf/scripts/python/mem-phys-addr.py | |
parent | c62c30429db3eb4ced35c7fcf6f04a61ce3a01bb (diff) | |
download | linux-95bbdca4999bc59a72ebab01663d421d6ce5775d.tar.xz |
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 <thunder.leizhen@huawei.com>
Link: https://lore.kernel.org/r/20241026125711.484-3-thunder.leizhen@huawei.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions