aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c
diff options
context:
space:
mode:
authorShuicheng Lin <[email protected]>2025-07-24 19:38:55 +0000
committerRodrigo Vivi <[email protected]>2025-07-28 14:22:43 +0000
commit4846856c3a4afa882b6d1b842ed2fad6f3781f4d (patch)
tree7f65ce0211690347831746fdf0f9aa338cdcce1c /drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c
parentdrm/xe/guc: Clear whole g2h_fence during initialization (diff)
downloadkernel-4846856c3a4afa882b6d1b842ed2fad6f3781f4d.tar.gz
kernel-4846856c3a4afa882b6d1b842ed2fad6f3781f4d.zip
drm/xe/hw_engine_group: Avoid call kfree() for drmm_kzalloc()
Memory allocated with drmm_kzalloc() should not be freed using kfree(), as it is managed by the DRM subsystem. The memory will be automatically freed when the associated drm_device is released. These 3 group pointers are allocated using drmm_kzalloc() in hw_engine_group_alloc(), so they don't require manual deallocation. Fixes: 67979060740f ("drm/xe/hw_engine_group: Fix potential leak") Cc: Michal Wajdeczko <[email protected]> Cc: Matthew Brost <[email protected]> Signed-off-by: Shuicheng Lin <[email protected]> Reviewed-by: Matthew Brost <[email protected]> Signed-off-by: Michal Wajdeczko <[email protected]> Link: https://lore.kernel.org/r/[email protected] (cherry picked from commit f98de826b418885a21ece67f0f5b921ae759b7bf) Signed-off-by: Rodrigo Vivi <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c')
0 files changed, 0 insertions, 0 deletions