[PATCH] drm/xe/hw_engine_group: Avoid call kfree() for drmm_kzalloc()
Michal Wajdeczko
michal.wajdeczko at intel.com
Fri Jul 25 08:08:27 UTC 2025
On 7/24/2025 9:38 PM, Shuicheng Lin wrote:
> 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 <michal.wajdeczko at intel.com>
> Cc: Matthew Brost <matthew.brost at intel.com>
> Signed-off-by: Shuicheng Lin <shuicheng.lin at intel.com>
> ---
fixed commit description per checkpatch complain and pushed
thanks for the fix!
Michal
More information about the Intel-xe
mailing list