kernel_samsung_a53x/drivers/scsi/qedi
Zhen Lei d5d3b2dd43 scsi: qedi: Fix a possible memory leak in qedi_alloc_and_init_sb()
[ Upstream commit 95bbdca4999bc59a72ebab01663d421d6ce5775d ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-12-17 13:24:09 +01:00
..
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qedi.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qedi_dbg.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qedi_dbg.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qedi_debugfs.c scsi: qedi: Fix crash while reading debugfs attribute 2024-11-19 14:19:06 +01:00
qedi_fw.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qedi_fw_api.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qedi_fw_iscsi.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qedi_fw_scsi.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qedi_gbl.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qedi_hsi.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qedi_iscsi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qedi_iscsi.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qedi_main.c scsi: qedi: Fix a possible memory leak in qedi_alloc_and_init_sb() 2024-12-17 13:24:09 +01:00
qedi_nvm_iscsi_cfg.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qedi_sysfs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qedi_version.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00