media: vicodec: add missing v4l2_ctrl_request_hdl_put()
[ Upstream commit2e7c8fb894
] 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:997deb811b
("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>
This commit is contained in:
parent
f28f3cffff
commit
3fe12f4be0
|
@ -2052,6 +2052,7 @@ static int vicodec_request_validate(struct media_request *req)
|
||||||
}
|
}
|
||||||
ctrl = v4l2_ctrl_request_hdl_ctrl_find(hdl,
|
ctrl = v4l2_ctrl_request_hdl_ctrl_find(hdl,
|
||||||
vicodec_ctrl_stateless_state.id);
|
vicodec_ctrl_stateless_state.id);
|
||||||
|
v4l2_ctrl_request_hdl_put(hdl);
|
||||||
if (!ctrl) {
|
if (!ctrl) {
|
||||||
v4l2_info(&ctx->dev->v4l2_dev,
|
v4l2_info(&ctx->dev->v4l2_dev,
|
||||||
"Missing required codec control\n");
|
"Missing required codec control\n");
|
||||||
|
|
Loading…
Reference in New Issue