summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorShuicheng Lin <shuicheng.lin@intel.com>2026-05-14 20:32:10 +0000
committerShuicheng Lin <shuicheng.lin@intel.com>2026-05-19 08:48:46 -0700
commit339fa0be9e4a5d69fa47e91f4a36574224fb478f (patch)
treea0534e64387347ebd45d1d94d8d5cdfb2f35c949 /include/linux
parent8d8395e943129b457403030d1112a1f9e48b6c27 (diff)
drm/xe/oa: Fix exec_queue leak on width check in stream open
In xe_oa_stream_open_ioctl(), when param.exec_q->width > 1 the function returns -EOPNOTSUPP directly, skipping the existing err_exec_q cleanup path. The exec_queue reference obtained by xe_exec_queue_lookup() is leaked. The exec queue holds a reference on the xe_file, which is only dropped during queue teardown. The leaked lookup ref is not on the file's exec_queue xarray, so file close cannot release it. This keeps both the exec queue and the file private state pinned indefinitely. Jump to err_exec_q instead of returning directly so the reference is released. Fixes: f0ed39830e60 ("xe/oa: Fix query mode of operation for OAR/OAC") Assisted-by: Claude:claude-opus-4.6 Reviewed-by: Ashutosh Dixit <ashutosh.dixit@intel.com> Link: https://patch.msgid.link/20260514203210.593488-1-shuicheng.lin@intel.com Signed-off-by: Shuicheng Lin <shuicheng.lin@intel.com>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions