linux/drivers/media/platform/coda
Philipp Zabel 03915a22e8 media: coda: fix deadlock between decoder picture run and start command
commit a3fd80198d upstream.

The BIT decoder picture run temporarily locks the bitstream mutex while
the coda device mutex is locked, to refill the bitstream ring buffer.
Consequently, the decoder start command, which locks both mutexes when
flushing the bitstream ring buffer, must lock the coda device mutex
first as well, to avoid an ABBA deadlock.

Fixes: e7fd95849b ("media: coda: flush bitstream ring buffer on decoder restart")
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-01-17 19:48:57 +01:00
..
Makefile media: drivers: media: coda: fix warning same module names 2019-06-12 10:45:05 -04:00
coda-bit.c media: coda: encoder parameter change support 2019-06-24 14:48:33 -04:00
coda-common.c media: coda: fix deadlock between decoder picture run and start command 2020-01-17 19:48:57 +01:00
coda-gdi.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
coda-h264.c Linux 5.2-rc4 2019-06-11 12:09:28 -04:00
coda-jpeg.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
coda-mpeg2.c media: coda: pad first buffer with repeated MPEG headers to fix sequence init 2019-06-24 14:30:59 -04:00
coda-mpeg4.c media: coda: pad first buffer with repeated MPEG headers to fix sequence init 2019-06-24 14:30:59 -04:00
coda.h media: coda: encoder parameter change support 2019-06-24 14:48:33 -04:00
coda_regs.h media: coda: encoder parameter change support 2019-06-24 14:48:33 -04:00
imx-vdoa.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 174 2019-05-30 11:26:41 -07:00
imx-vdoa.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157 2019-05-30 11:26:37 -07:00
trace.h media: coda: remove -I$(src) header search path 2019-05-23 12:04:00 -04:00