diff options
author | Philipp Zabel <[email protected]> | 2022-04-05 14:50:35 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <[email protected]> | 2022-04-24 08:44:38 +0100 |
commit | 87e0ce68cc0216063c6329aca0c31961a33a5372 (patch) | |
tree | 33078dd67ef1ef9001ec15de0fcbc5e554170f6f | |
parent | bf5071cccb823582dc62dda1404f76bb6cb163f6 (diff) |
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 <[email protected]>
Signed-off-by: Hans Verkuil <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
-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; |