Files
linux/drivers/gpu/drm/xe
Shuicheng Lin 4d25342543 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: f0ed39830e ("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>
(cherry picked from commit 339fa0be9e)
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
2026-05-21 09:56:49 -04:00
..
2026-03-12 07:23:23 -07:00
2025-10-15 22:48:54 -07:00
2026-04-07 12:36:31 +02:00
2025-07-01 13:58:50 -07:00
2025-12-22 10:22:00 -08:00
2024-05-22 12:03:55 +02:00
2026-03-16 07:36:41 -07:00
2026-02-20 15:49:58 +01:00
2026-03-23 15:23:24 +05:30
2026-03-23 15:23:24 +05:30
2025-01-27 08:54:06 -08:00
2025-02-03 11:51:26 -08:00
2026-04-07 12:36:31 +02:00
2026-04-07 12:36:31 +02:00
2025-06-27 14:52:31 -07:00
2025-12-24 07:59:35 -08:00