kernel_samsung_a53x/drivers/scsi/qedf
Zhen Lei c809a840de scsi: qedf: Fix a possible memory leak in qedf_alloc_and_init_sb()
[ Upstream commit c62c30429db3eb4ced35c7fcf6f04a61ce3a01bb ]

Hook "qed_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: 61d8658b4a43 ("scsi: qedf: Add QLogic FastLinQ offload FCoE driver framework.")
Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
Link: https://lore.kernel.org/r/20241026125711.484-2-thunder.leizhen@huawei.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-12-17 13:24:09 +01:00
..
drv_fcoe_fw_funcs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
drv_fcoe_fw_funcs.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
drv_scsi_fw_funcs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
drv_scsi_fw_funcs.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qedf.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qedf_attr.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qedf_dbg.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qedf_dbg.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qedf_debugfs.c scsi: qedf: Ensure the copied buf is NUL terminated 2024-11-19 12:26:56 +01:00
qedf_els.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qedf_fip.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qedf_hsi.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qedf_io.c scsi: qedf: Make qedf_execute_tmf() non-preemptible 2024-11-19 14:19:40 +01:00
qedf_main.c scsi: qedf: Fix a possible memory leak in qedf_alloc_and_init_sb() 2024-12-17 13:24:09 +01:00
qedf_version.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00