diff options
| author | Shuicheng Lin <shuicheng.lin@intel.com> | 2026-04-08 20:52:52 +0300 |
|---|---|---|
| committer | Rodrigo Vivi <rodrigo.vivi@intel.com> | 2026-04-29 19:51:20 +0300 |
| commit | 09a8f3c1c11977a6e10c167f26dd298790b31c32 (patch) | |
| tree | 3244aab09003eccbef7698849e1c1f772da3b321 /include/linux/workqueue_api.h | |
| parent | f8c4151d50b12923b67819ebf03c1c6782c984c1 (diff) | |
| download | linux-09a8f3c1c11977a6e10c167f26dd298790b31c32.tar.xz | |
drm/xe/bo: Fix bo leak on unaligned size validation in xe_bo_init_locked()
When type is ttm_bo_type_device and aligned_size != size, 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: 4e03b584143e ("drm/xe/uapi: Reject bo creation of unaligned size")
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-2-shuicheng.lin@intel.com
Signed-off-by: Shuicheng Lin <shuicheng.lin@intel.com>
(cherry picked from commit 601c2aa087b6f21014300a3f107a08ee4dde7bdf)
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Diffstat (limited to 'include/linux/workqueue_api.h')
0 files changed, 0 insertions, 0 deletions
