diff options
| author | 2026-04-08 17:52:55 +0000 | |
|---|---|---|
| committer | 2026-04-29 12:51:20 -0400 | |
| commit | 111ab678471bf1f90d078d5513bb086b70596c3c (patch) | |
| tree | ab8ae65f3ed6f1c098b7ecd8a482143c01f1af74 /rust/kernel/ssh:/git@git.zx2c4.com/git: | |
| parent | drm/xe: Fix bo leak in xe_dma_buf_init_obj() on allocation failure (diff) | |
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
Reviewed-by: Mattheq Brost <matthew.brost@intel.com>
Link: https://patch.msgid.link/20260408175255.3402838-5-shuicheng.lin@intel.com
Signed-off-by: Shuicheng Lin <shuicheng.lin@intel.com>
(cherry picked from commit a828eb185aac41800df8eae4b60501ccc0dbbe51)
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Diffstat (limited to 'rust/kernel/ssh:/git@git.zx2c4.com/git:')
0 files changed, 0 insertions, 0 deletions
