OpenCloudOS-Kernel/drivers/media/platform/allegro-dvt
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
..
Makefile media: allegro: add HEVC NAL unit generator 2021-01-27 16:04:04 +01:00
allegro-core.c media: allegro: ignore interrupt if mailbox is not initialized 2021-10-20 15:52:13 +01:00
allegro-mail.c media: allegro: add support for HEVC encoding 2021-01-27 16:15:04 +01:00
allegro-mail.h media: allegro: add support for HEVC encoding 2021-01-27 16:15:04 +01:00
nal-h264.c media: allegro-dvt: avoid EN DASH char 2021-06-04 08:10:07 +02:00
nal-h264.h media: allegro: change kernel-doc comment blocks to normal comments 2021-04-09 13:17:27 +02:00
nal-hevc.c media: allegro-dvt: avoid EN DASH char 2021-06-04 08:10:07 +02:00
nal-hevc.h media: allegro: change kernel-doc comment blocks to normal comments 2021-04-09 13:17:27 +02:00
nal-rbsp.c media: allegro: add helper to report unsupported fields 2021-01-27 15:52:23 +01:00
nal-rbsp.h media: allegro: add helper to report unsupported fields 2021-01-27 15:52:23 +01:00