diff options
| author | Philipp Zabel <[email protected]> | 2019-10-24 10:32:11 +0000 |
|---|---|---|
| committer | Mauro Carvalho Chehab <[email protected]> | 2019-11-05 11:59:19 +0000 |
| commit | a3fd80198de6ab98a205cf7fb148d88e9e1c44bb (patch) | |
| tree | 81eddc4e4477dde83d4040cd812099dc470bb7a0 /drivers/media/platform/vimc | |
| parent | media: v4l2-core: fix touch support in v4l_g_fmt (diff) | |
| download | kernel-a3fd80198de6ab98a205cf7fb148d88e9e1c44bb.tar.gz kernel-a3fd80198de6ab98a205cf7fb148d88e9e1c44bb.zip | |
media: coda: fix deadlock between decoder picture run and start command
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: e7fd95849b3c ("media: coda: flush bitstream ring buffer on decoder restart")
Signed-off-by: Philipp Zabel <[email protected]>
Signed-off-by: Hans Verkuil <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'drivers/media/platform/vimc')
0 files changed, 0 insertions, 0 deletions
