diff options
| author | Zhen Lei <[email protected]> | 2024-10-26 12:57:11 +0000 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2024-11-07 01:46:36 +0000 |
| commit | 95bbdca4999bc59a72ebab01663d421d6ce5775d (patch) | |
| tree | 96db283053c357bfffad606f72307c0ae8a96063 /drivers/usb/cdns3/cdns3-pci-wrap.c | |
| parent | scsi: qedf: Fix a possible memory leak in qedf_alloc_and_init_sb() (diff) | |
| download | kernel-95bbdca4999bc59a72ebab01663d421d6ce5775d.tar.gz kernel-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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-pci-wrap.c')
0 files changed, 0 insertions, 0 deletions
