diff options
| author | 2026-07-31 03:31:43 +0300 | |
|---|---|---|
| committer | 2026-09-29 12:53:47 +0100 | |
| commit | 397ebadcbc219f6c20d11c0378d8cb7695d015c2 (patch) | |
| tree | 9c512ebb206e071e8c3308bb689340aa5eb1c366 /scripts/Makefile.thinlto | |
| parent | media: iris: guard against a NULL hfi_sys_ops in the interrupt handler (diff) | |
media: iris: reject open() when the session limit is reached
iris_add_session() silently skips adding the instance to core->instances
once max_session_count is reached, but returns void, so iris_open()
continues as if it succeeded and hands a file descriptor back to
userspace. As the instance is not on core->instances, firmware responses
for it are dropped and every subsequent ioctl times out.
Make iris_add_session() return an error when the limit is reached and
fail iris_open() accordingly, freeing the partially initialised instance.
Fixes: 38fc8beaba55 ("media: iris: implement reqbuf ioctl with vb2_queue_setup")
Assisted-by: Claude:claude-opus-4-8
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Signed-off-by: Bryan O'Donoghue <bod@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
