]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/xe/sync: Fix user fence leak on alloc failure
authorShuicheng Lin <shuicheng.lin@intel.com>
Thu, 19 Feb 2026 23:35:19 +0000 (23:35 +0000)
committerMatthew Brost <matthew.brost@intel.com>
Fri, 20 Feb 2026 18:49:08 +0000 (10:49 -0800)
commita5d5634cde48a9fcd68c8504aa07f89f175074a0
tree42f2c49187e05d81535e855bbd5c177809ec6f52
parentf939bdd9207a5d1fc55cced5459858480686ce22
drm/xe/sync: Fix user fence leak on alloc failure

When dma_fence_chain_alloc() fails, properly release the user fence
reference to prevent a memory leak.

Fixes: adda4e855ab6 ("drm/xe: Enforce correct user fence signaling order using")
Cc: Matthew Brost <matthew.brost@intel.com>
Signed-off-by: Shuicheng Lin <shuicheng.lin@intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Link: https://patch.msgid.link/20260219233516.2938172-6-shuicheng.lin@intel.com
drivers/gpu/drm/xe/xe_sync.c