diff options
| author | Philipp Zabel <p.zabel@pengutronix.de> | 2022-04-05 16:50:35 +0300 |
|---|---|---|
| committer | Mauro Carvalho Chehab <mchehab@kernel.org> | 2022-04-24 10:44:38 +0300 |
| commit | 87e0ce68cc0216063c6329aca0c31961a33a5372 (patch) | |
| tree | 33078dd67ef1ef9001ec15de0fcbc5e554170f6f | |
| parent | bf5071cccb823582dc62dda1404f76bb6cb163f6 (diff) | |
| download | linux-87e0ce68cc0216063c6329aca0c31961a33a5372.tar.xz | |
media: coda: assert bitstream mutex is locked in coda_fill_bitstream
coda_fill_bitstream() must be called under the bitstream mutex.
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>
| -rw-r--r-- | drivers/media/platform/chips-media/coda-bit.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/platform/chips-media/coda-bit.c b/drivers/media/platform/chips-media/coda-bit.c index c484c008ab02..804fc84d5966 100644 --- a/drivers/media/platform/chips-media/coda-bit.c +++ b/drivers/media/platform/chips-media/coda-bit.c @@ -326,6 +326,8 @@ void coda_fill_bitstream(struct coda_ctx *ctx, struct list_head *buffer_list) struct coda_buffer_meta *meta; u32 start; + lockdep_assert_held(&ctx->bitstream_mutex); + if (ctx->bit_stream_param & CODA_BIT_STREAM_END_FLAG) return; |
