diff options
Diffstat (limited to 'drivers/media/video/v4l2-mem2mem.c')
-rw-r--r-- | drivers/media/video/v4l2-mem2mem.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/media/video/v4l2-mem2mem.c b/drivers/media/video/v4l2-mem2mem.c index f45f9405ea39..ac832a28e18e 100644 --- a/drivers/media/video/v4l2-mem2mem.c +++ b/drivers/media/video/v4l2-mem2mem.c | |||
@@ -421,8 +421,8 @@ unsigned int v4l2_m2m_poll(struct file *file, struct v4l2_m2m_ctx *m2m_ctx, | |||
421 | src_q = v4l2_m2m_get_src_vq(m2m_ctx); | 421 | src_q = v4l2_m2m_get_src_vq(m2m_ctx); |
422 | dst_q = v4l2_m2m_get_dst_vq(m2m_ctx); | 422 | dst_q = v4l2_m2m_get_dst_vq(m2m_ctx); |
423 | 423 | ||
424 | mutex_lock(&src_q->vb_lock); | 424 | videobuf_queue_lock(src_q); |
425 | mutex_lock(&dst_q->vb_lock); | 425 | videobuf_queue_lock(dst_q); |
426 | 426 | ||
427 | if (src_q->streaming && !list_empty(&src_q->stream)) | 427 | if (src_q->streaming && !list_empty(&src_q->stream)) |
428 | src_vb = list_first_entry(&src_q->stream, | 428 | src_vb = list_first_entry(&src_q->stream, |
@@ -450,8 +450,8 @@ unsigned int v4l2_m2m_poll(struct file *file, struct v4l2_m2m_ctx *m2m_ctx, | |||
450 | } | 450 | } |
451 | 451 | ||
452 | end: | 452 | end: |
453 | mutex_unlock(&dst_q->vb_lock); | 453 | videobuf_queue_unlock(dst_q); |
454 | mutex_unlock(&src_q->vb_lock); | 454 | videobuf_queue_unlock(src_q); |
455 | return rc; | 455 | return rc; |
456 | } | 456 | } |
457 | EXPORT_SYMBOL_GPL(v4l2_m2m_poll); | 457 | EXPORT_SYMBOL_GPL(v4l2_m2m_poll); |