summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorShuicheng Lin <shuicheng.lin@intel.com>2026-04-08 20:52:53 +0300
committerRodrigo Vivi <rodrigo.vivi@intel.com>2026-04-29 19:51:20 +0300
commit1d0adf2fd94fb0c0037c643fadd8f2cf3cffc009 (patch)
treefb32b69c05eefc705f757e90ac873de5c77608e3 /include
parent09a8f3c1c11977a6e10c167f26dd298790b31c32 (diff)
downloadlinux-1d0adf2fd94fb0c0037c643fadd8f2cf3cffc009.tar.xz
drm/xe/bo: Fix bo leak on GGTT flag validation in xe_bo_init_locked()
When XE_BO_FLAG_GGTT_ALL is set without XE_BO_FLAG_GGTT, the function returns an error without freeing a caller-provided bo, violating the documented contract that bo is freed on failure. Add xe_bo_free(bo) before returning the error. Fixes: 5a3b0df25d6a ("drm/xe: Allow bo mapping on multiple ggtts") Cc: stable@vger.kernel.org Assisted-by: Claude:claude-opus-4.6 Reviewed-by: Matthew Brost <matthew.brost@intel.com> Link: https://patch.msgid.link/20260408175255.3402838-3-shuicheng.lin@intel.com Signed-off-by: Shuicheng Lin <shuicheng.lin@intel.com> (cherry picked from commit 3fbd6cf43cac7b60757f3ce3d95195d3843a902c) Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions