diff options
| author | Maíra Canal <mcanal@igalia.com> | 2026-06-04 17:32:17 -0300 |
|---|---|---|
| committer | Maíra Canal <mcanal@igalia.com> | 2026-06-09 14:43:43 -0300 |
| commit | 66fc52ba7c3f36dcbd55bf19a788306147e2a318 (patch) | |
| tree | 6b1fa67acc1c6f648e5133d56fe21f3cc7408b51 /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | 57d78cbc16c930f698616d4db16aa85a49a356f7 (diff) | |
drm/v3d: Reject invalid syncobj handles in submit ioctls
drm_sched_job_add_syncobj_dependency() returns -ENOENT both when the
handle is zero and when the handle is non-zero but does not find a
corresponding existing syncobj (userspace bug). The driver previously
ignored -ENOENT in both cases, silently accepting broken handles.
Distinguish the two: skip the call entirely when the handle is zero, as
there is no dependency, and let -ENOENT propagate for non-zero handles
that don't resolve, turning the error into a proper return to userspace.
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@igalia.com>
Link: https://patch.msgid.link/20260604-v3d-sched-misc-fixes-v4-4-c068f5bf5ccf@igalia.com
Signed-off-by: Maíra Canal <mcanal@igalia.com>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions
