OpenCloudOS-Kernel/drivers/media
Michael Tretter 1ecda6393d media: allegro: ignore interrupt if mailbox is not initialized
The mailbox is initialized after the interrupt handler is installed. As
the firmware is loaded and started even later, it should not happen that
the interrupt occurs without the mailbox being initialized.

As the Linux Driver Verification project (linuxtesting.org) keeps
reporting this as an error, add a check to ignore interrupts before the
mailbox is initialized to fix this potential null pointer dereference.

Reported-by: Yuri Savinykh <s02190703@gse.cs.msu.ru>
Reported-by: Nadezda Lutovinova <lutovinova@ispras.ru>
Signed-off-by: Michael Tretter <m.tretter@pengutronix.de>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
2021-10-20 15:52:13 +01:00
..
cec media: CEC: keep related menu entries together 2021-10-05 09:39:32 +02:00
common media: videobuf2: always set buffer vb2 pointer 2021-10-19 08:08:38 +01:00
dvb-core media: videobuf2: add queue memory coherency parameter 2021-09-30 10:07:57 +02:00
dvb-frontends media: rtl2832_sdr: clean the freed pointer and counter 2021-10-08 13:54:16 +02:00
firewire media: firewire: firedtv-avc: fix a buffer overflow in avc_ca_pmt() 2021-09-30 10:07:54 +02:00
i2c media: Add ADV7610 support for adv7604 driver. 2021-10-19 08:08:38 +01:00
mc media: Request API is no longer experimental 2021-09-30 10:07:55 +02:00
mmc media updates for v5.8-rc1 2020-06-03 20:59:38 -07:00
pci media: ivtv: fix build for UML 2021-10-19 08:08:39 +01:00
platform media: allegro: ignore interrupt if mailbox is not initialized 2021-10-20 15:52:13 +01:00
radio media: si470x: Avoid card name truncation 2021-09-30 10:08:00 +02:00
rc media: ite-cir: IR receiver stop working after receive overflow 2021-10-19 08:08:39 +01:00
spi media: cxd2880-spi: Fix a null pointer dereference on error handling path 2021-09-30 10:07:40 +02:00
test-drivers media: vidtv: move kfree(dvb) to vidtv_bridge_dev_release() 2021-10-19 08:08:19 +01:00
tuners Linux 5.15-rc4 2021-10-04 07:52:13 +02:00
usb media: gspca/gl860-mi1320/ov9655: avoid -Wstring-concatenation warning 2021-10-19 08:08:38 +01:00
v4l2-core media: videobuf2: handle V4L2_MEMORY_FLAG_NON_COHERENT flag 2021-09-30 10:07:57 +02:00
Kconfig media: Correct 'so' 2021-03-22 11:52:09 +01:00
Makefile media: media/test_drivers: rename to test-drivers 2020-04-16 10:38:31 +02:00