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: baikal/aarch64/sdk6.1~4423^2~319 X-Git-Url: https://git.baikalelectronics.ru/?a=commitdiff_plain;h=0a18b0f76049a591c4e59044ae21b844e318a00a;p=kernel.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;