✗ CI.checkpatch: warning for drm/xe/hw_engine_group: Avoid call kfree() for drmm_kzalloc()

Patchwork patchwork at emeril.freedesktop.org
Thu Jul 24 20:04:17 UTC 2025


== Series Details ==

Series: drm/xe/hw_engine_group: Avoid call kfree() for drmm_kzalloc()
URL   : https://patchwork.freedesktop.org/series/152094/
State : warning

== Summary ==

+ KERNEL=/kernel
+ git clone https://gitlab.freedesktop.org/drm/maintainer-tools mt
Cloning into 'mt'...
warning: redirecting to https://gitlab.freedesktop.org/drm/maintainer-tools.git/
+ git -C mt rev-list -n1 origin/master
63535c743231a7497a612c53f6edbb8a7d14412d
+ cd /kernel
+ git config --global --add safe.directory /kernel
+ git log -n1
commit 19d63b8b12c1749f0ac41be67def65322c574f1e
Author: Shuicheng Lin <shuicheng.lin at intel.com>
Date:   Thu Jul 24 19:38:55 2025 +0000

    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 <michal.wajdeczko at intel.com>
    Cc: Matthew Brost <matthew.brost at intel.com>
    Signed-off-by: Shuicheng Lin <shuicheng.lin at intel.com>
    Reviewed-by: Matthew Brost <matthew.brost at intel.com>
+ /mt/dim checkpatch e84ae65b0196f8c961dcc7f9149912d60bc28a68 drm-intel
19d63b8b12c1 drm/xe/hw_engine_group: Avoid call kfree() for drmm_kzalloc()
-:6: WARNING:COMMIT_LOG_LONG_LINE: Prefer a maximum 75 chars per line (possible unwrapped commit description?)
#6: 
Memory allocated with drmm_kzalloc() should not be freed using kfree(), as it

total: 0 errors, 1 warnings, 0 checks, 46 lines checked




More information about the Intel-xe mailing list