summaryrefslogtreecommitdiffstats
path: root/drivers/media/parport/bw-qcam.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/parport/bw-qcam.c')
-rw-r--r--drivers/media/parport/bw-qcam.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/media/parport/bw-qcam.c b/drivers/media/parport/bw-qcam.c
index cf2db63da3b1..8a0e84c7d495 100644
--- a/drivers/media/parport/bw-qcam.c
+++ b/drivers/media/parport/bw-qcam.c
@@ -674,6 +674,9 @@ static void buffer_finish(struct vb2_buffer *vb)
int size = vb->vb2_queue->plane_sizes[0];
int len;
+ if (!vb2_is_streaming(vb->vb2_queue))
+ return;
+
mutex_lock(&qcam->lock);
parport_claim_or_block(qcam->pdev);