aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
diff options
context:
space:
mode:
authorZhen Lei <[email protected]>2024-10-26 12:57:10 +0000
committerMartin K. Petersen <[email protected]>2024-11-07 01:46:32 +0000
commitc62c30429db3eb4ced35c7fcf6f04a61ce3a01bb (patch)
treec961943f90b13df71a001184e0b71d847a0ba28d /drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
parentscsi: fusion: Remove unused variable 'rc' (diff)
downloadkernel-c62c30429db3eb4ced35c7fcf6f04a61ce3a01bb.tar.gz
kernel-c62c30429db3eb4ced35c7fcf6f04a61ce3a01bb.zip
scsi: qedf: Fix a possible memory leak in qedf_alloc_and_init_sb()
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c')
0 files changed, 0 insertions, 0 deletions