media: vicodec: add missing v4l2_ctrl_request_hdl_put()
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Wed, 12 Aug 2020 10:30:33 +0000 (12:30 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Sep 2020 17:14:18 +0000 (19:14 +0200)
commit60e9f3f036f340e7bcc181526788f5945151ae0f
tree8d9754148c2535e226011253b4db8fd874149037
parent72c7309533b464484375a1b15186c2e8c34dc40f
media: vicodec: add missing v4l2_ctrl_request_hdl_put()

[ Upstream commit 2e7c8fb8942773f412fe12f3b63e8bb92c18ab3f ]

The check for a required control in the request was missing a call to
v4l2_ctrl_request_hdl_put(), so the control request object was never
released.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Fixes: 997deb811bf5 ("media: vicodec: Add support for stateless decoder.")
Reviewed-by: Ezequiel Garcia <ezequiel@collabora.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/media/test-drivers/vicodec/vicodec-core.c