linux-uconsole/drivers/media/platform/sti
Evgeny Novikov 74ef2418a7 media: st-hva: Fix potential NULL pointer dereferences
[ Upstream commit b7fdd20868 ]

When ctx_id >= HVA_MAX_INSTANCES in hva_hw_its_irq_thread() it tries to
access fields of ctx that is NULL at that point. The patch gets rid of
these accesses.

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Evgeny Novikov <novikov@ispras.ru>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-07-14 16:55:53 +02:00
..
bdisp media: sti: fix obj-$(config) targets 2021-07-14 16:55:51 +02:00
c8sectpfe media: sti: convert tasklets to use new tasklet_setup() API 2020-08-29 08:13:55 +02:00
delta media: sti: fix obj-$(config) targets 2021-07-14 16:55:51 +02:00
hva media: st-hva: Fix potential NULL pointer dereferences 2021-07-14 16:55:53 +02:00