diff options
author | Corentin Labbe <clabbe@baylibre.com> | 2021-12-14 17:16:31 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@kernel.org> | 2022-01-23 21:18:39 +0100 |
commit | 4e3edddb9507a28446624144da6be5d1323e6f15 (patch) | |
tree | cf1129404d092dd041cc4a97b4d0c94c53a4fe95 /drivers/staging/media/zoran | |
parent | 202ddbc9a33b7296c03f8b0dbcffc071a72866ed (diff) | |
download | linux-4e3edddb9507a28446624144da6be5d1323e6f15.tar.bz2 |
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>
Diffstat (limited to 'drivers/staging/media/zoran')
-rw-r--r-- | drivers/staging/media/zoran/zoran_driver.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/media/zoran/zoran_driver.c b/drivers/staging/media/zoran/zoran_driver.c index 31993c266976..32d76876c683 100644 --- a/drivers/staging/media/zoran/zoran_driver.c +++ b/drivers/staging/media/zoran/zoran_driver.c @@ -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; |