From: Corentin Labbe Date: Tue, 14 Dec 2021 16:16:31 +0000 (+0100) Subject: media: staging: media: zoran: fix counting buffer in reserve X-Git-Tag: v5.18-rc1~153^2~319 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4e3edddb9507a28446624144da6be5d1323e6f15;p=thirdparty%2Fkernel%2Flinux.git 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 Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/staging/media/zoran/zoran_driver.c b/drivers/staging/media/zoran/zoran_driver.c index 31993c2669768..32d76876c6830 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;