mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-02 15:43:35 -04:00
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>
This commit is contained in:
committed by
Mauro Carvalho Chehab
parent
bf5071cccb
commit
87e0ce68cc
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user