linux-yocto/drivers/media
Jorge Ramirez-Ortiz 9db6a78bc5 media: venus: protect against spurious interrupts during probe
[ Upstream commit 3200144a2f ]

Make sure the interrupt handler is initialized before the interrupt is
registered.

If the IRQ is registered before hfi_create(), it's possible that an
interrupt fires before the handler setup is complete, leading to a NULL
dereference.

This error condition has been observed during system boot on Rb3Gen2.

Fixes: af2c3834c8 ("[media] media: venus: adding core part and helper functions")
Cc: stable@vger.kernel.org
Signed-off-by: Jorge Ramirez-Ortiz <jorge.ramirez@oss.qualcomm.com>
Reviewed-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Reviewed-by: Vikash Garodia <quic_vgarodia@quicinc.com>
Reviewed-by: Dikshita Agarwal <quic_dikshita@quicinc.com>
Tested-by: Dikshita Agarwal <quic_dikshita@quicinc.com> # RB5
Signed-off-by: Bryan O'Donoghue <bod@kernel.org>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-08-28 16:24:36 +02:00
..
cec media: rainshadow-cec: fix TOCTOU race condition in rain_interrupt() 2025-08-28 16:24:29 +02:00
common media: videobuf2: use sgtable-based scatterlist wrappers 2025-06-27 11:05:24 +01:00
dvb-core media: dvbdev: fix the logic when DVB_DYNAMIC_MINORS is not set 2024-12-14 19:50:37 +01:00
dvb-frontends media: dvb-frontends: w7090p: fix null-ptr-deref in w7090p_tuner_write_serpar and w7090p_tuner_read_serpar 2025-08-28 16:24:24 +02:00
firewire
i2c media: ov2659: Fix memory leaks in ov2659_probe() 2025-08-28 16:24:29 +02:00
mc
mmc
pci media: solo6x10: replace max(a, min(b, c)) by clamp(b, a, c) 2024-09-04 13:23:31 +02:00
platform media: venus: protect against spurious interrupts during probe 2025-08-28 16:24:36 +02:00
radio media: wl128x: Fix atomicity violation in fmc_send_cmd() 2024-12-14 19:51:17 +01:00
rc media: streamzap: fix race between device disconnection and urb callback 2025-05-02 07:44:25 +02:00
spi
test-drivers media: vivid: Change the siize of the composing 2025-06-27 11:05:24 +01:00
tuners Revert "media: tuners: fix error return code of hybrid_tuner_request_state()" 2024-10-17 15:11:10 +02:00
usb media: usbtv: Lock resolution while streaming 2025-08-28 16:24:29 +02:00
v4l2-core media: v4l2-ctrls: Don't reset handler's error in v4l2_ctrl_handler_free() 2025-08-28 16:24:29 +02:00
Kconfig
Makefile