media: sun6i-isp: params: Unregister pending buffer on cleanup
authorPaul Kocialkowski <paul.kocialkowski@bootlin.com>
Thu, 8 Dec 2022 14:20:06 +0000 (15:20 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Wed, 14 Dec 2022 18:12:32 +0000 (18:12 +0000)
commit542d3c03fd895eb8370992293498332ea383a3b9
tree5273bd539a8e04535ffb9c7bdb72bb055f176fa7
parent94c34359c88737d903c44d1c1a265cfdc58acd0e
media: sun6i-isp: params: Unregister pending buffer on cleanup

The state cleanup helper should unregister the pending buffer from
the state after returning it to v4l2, like it is done for other
buffers in the wait queue.

Before this change, the pending buffer from a previous run might have
been returned at the beginning of the next run, causing an error.

Signed-off-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com>
Fixes: e3185e1d7c14 ("media: staging: media: Add support for the Allwinner A31 ISP")
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/staging/media/sunxi/sun6i-isp/sun6i_isp_params.c