diff options
| author | Shuicheng Lin <[email protected]> | 2025-07-24 19:38:55 +0000 |
|---|---|---|
| committer | Rodrigo Vivi <[email protected]> | 2025-07-28 14:22:43 +0000 |
| commit | 4846856c3a4afa882b6d1b842ed2fad6f3781f4d (patch) | |
| tree | 7f65ce0211690347831746fdf0f9aa338cdcce1c /drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | |
| parent | drm/xe/guc: Clear whole g2h_fence during initialization (diff) | |
| download | kernel-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_ucode.c')
0 files changed, 0 insertions, 0 deletions
