]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
media: v4l2-ctrls.c: initialize flags field of p_fwht_params
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Fri, 12 Mar 2021 08:49:55 +0000 (09:49 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 12 May 2021 06:37:22 +0000 (08:37 +0200)
commitf6b467bc7d8ba3e0e065a223666a5881a4ccf7f5
treee8651747aa6120a54f9dcd2a8f839afb29cf28b0
parentcf9ad24ac82dcac248924865fedec22b05f1140f
media: v4l2-ctrls.c: initialize flags field of p_fwht_params

[ Upstream commit ea1611ba3a544b34f89ffa3d1e833caab30a3f09 ]

The V4L2_CID_STATELESS_FWHT_PARAMS compound control was missing a
proper initialization of the flags field, so after loading the vicodec
module for the first time, running v4l2-compliance for the stateless
decoder would fail on this control because the initial control value
was considered invalid by the vicodec driver.

Initializing the flags field to sane values fixes this.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/media/v4l2-core/v4l2-ctrls.c