media: staging: media: zoran: fix counting buffer in reserve
After each capture, zoran driver complains that it remains some unused buffer. This is due to a missing count handling. Signed-off-by: Corentin Labbe <clabbe@baylibre.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
This commit is contained in:
parent
202ddbc9a3
commit
4e3edddb95
|
@ -887,6 +887,7 @@ int zr_set_buf(struct zoran *zr)
|
|||
return -EINVAL;
|
||||
}
|
||||
list_del(&buf->queue);
|
||||
zr->buf_in_reserve--;
|
||||
spin_unlock_irqrestore(&zr->queued_bufs_lock, flags);
|
||||
|
||||
vbuf = &buf->vbuf;
|
||||
|
|
Loading…
Reference in New Issue