✗ CI.checkpatch: warning for drm/xe: Fix resource leaks in bo init and dma-buf paths

Patchwork
2026-04-07T21:48:57Z

== Series Details ==

Series: drm/xe: Fix resource leaks in bo init and dma-buf paths
URL : https://patchwork.freedesktop.org/series/164476/
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
1f57ba1afceae32108bd24770069f764d940a0e4
+ cd /kernel
+ git config --global --add safe.directory /kernel
+ git log -n1
commit 09c060bfdd054bfab4979b9aa38f0c59c44fa5a0
Author: Shuicheng Lin <shuicheng.lin@intel.com>
Date: Tue Apr 7 20:15:42 2026 +0000

drm/xe: Fix dma-buf attachment leak in xe_gem_prime_import()

When xe_dma_buf_init_obj() fails, the attachment from
dma_buf_dynamic_attach() is not detached. Add dma_buf_detach() before
returning the error. Note: we cannot use goto out_err here because
xe_dma_buf_init_obj() already frees bo on failure, and out_err would
double-free it.

Fixes: dd08ebf6c352 ("drm/xe: Introduce a new DRM driver for Intel GPUs")
Cc: stable@vger.kernel.org
Assisted-by: Claude:claude-opus-4.6
Signed-off-by: Shuicheng Lin <shuicheng.lin@intel.com>
+ /mt/dim checkpatch 2dc939ed1bd66b5eac479a95968188a87de9cf81 drm-intel
f5a90be00b05 drm/xe/bo: Fix bo leak on unaligned size validation in xe_bo_init_locked()
-:15: WARNING:BAD_SIGN_OFF: Non-standard signature: Assisted-by:
#15:
Assisted-by: Claude:claude-opus-4.6

-:15: ERROR:BAD_SIGN_OFF: Unrecognized email address: 'Claude:claude-opus-4.6'
#15:
Assisted-by: Claude:claude-opus-4.6

total: 1 errors, 1 warnings, 0 checks, 11 lines checked
80673b3a23a4 drm/xe/bo: Fix bo leak on GGTT flag validation in xe_bo_init_locked()
-:15: WARNING:BAD_SIGN_OFF: Non-standard signature: Assisted-by:
#15:
Assisted-by: Claude:claude-opus-4.6

-:15: ERROR:BAD_SIGN_OFF: Unrecognized email address: 'Claude:claude-opus-4.6'
#15:
Assisted-by: Claude:claude-opus-4.6

total: 1 errors, 1 warnings, 0 checks, 11 lines checked
c85fa54d778b drm/xe: Fix bo leak in xe_dma_buf_init_obj() on allocation failure
-:12: WARNING:BAD_SIGN_OFF: Non-standard signature: Assisted-by:
#12:
Assisted-by: Claude:claude-opus-4.6

-:12: ERROR:BAD_SIGN_OFF: Unrecognized email address: 'Claude:claude-opus-4.6'
#12:
Assisted-by: Claude:claude-opus-4.6

total: 1 errors, 1 warnings, 0 checks, 11 lines checked
09c060bfdd05 drm/xe: Fix dma-buf attachment leak in xe_gem_prime_import()
-:14: WARNING:BAD_SIGN_OFF: Non-standard signature: Assisted-by:
#14:
Assisted-by: Claude:claude-opus-4.6

-:14: ERROR:BAD_SIGN_OFF: Unrecognized email address: 'Claude:claude-opus-4.6'
#14:
Assisted-by: Claude:claude-opus-4.6

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