diff options
| author | Ivan Abramov <i.abramov@mt-integration.ru> | 2025-09-03 02:23:31 +0300 |
|---|---|---|
| committer | Hans Verkuil <hverkuil+cisco@kernel.org> | 2025-10-14 15:07:37 +0200 |
| commit | 8163419e3e05d71dcfa8fb49c8fdf8d76908fe51 (patch) | |
| tree | 04ade41dba0950379c7e50549ae3e5214bbc5a09 /scripts/decode_stacktrace.sh | |
| parent | media: i2c: ADV7604: Remove redundant cancel_delayed_work in probe (diff) | |
| download | linux-8163419e3e05d71dcfa8fb49c8fdf8d76908fe51.tar.gz linux-8163419e3e05d71dcfa8fb49c8fdf8d76908fe51.zip | |
media: adv7842: Avoid possible out-of-bounds array accesses in adv7842_cp_log_status()
It's possible for cp_read() and hdmi_read() to return -EIO. Those
values are further used as indexes for accessing arrays.
Fix that by checking return values where it's needed.
Found by Linux Verification Center (linuxtesting.org) with SVACE.
Fixes: a89bcd4c6c20 ("[media] adv7842: add new video decoder driver")
Cc: stable@vger.kernel.org
Signed-off-by: Ivan Abramov <i.abramov@mt-integration.ru>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
Diffstat (limited to 'scripts/decode_stacktrace.sh')
0 files changed, 0 insertions, 0 deletions
