diff options
author | 2024-10-26 20:57:11 +0800 | |
---|---|---|
committer | 2024-11-06 20:46:36 -0500 | |
commit | 95bbdca4999bc59a72ebab01663d421d6ce5775d (patch) | |
tree | 96db283053c357bfffad606f72307c0ae8a96063 /scripts/lib/kdoc/kdoc_files.py | |
parent | scsi: qedf: Fix a possible memory leak in qedf_alloc_and_init_sb() (diff) | |
download | linux-rng-95bbdca4999bc59a72ebab01663d421d6ce5775d.tar.xz linux-rng-95bbdca4999bc59a72ebab01663d421d6ce5775d.zip |
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 'scripts/lib/kdoc/kdoc_files.py')
0 files changed, 0 insertions, 0 deletions