]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
media: rkvdec: Initialize the m2m context before the controls
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Thu, 1 May 2025 19:55:48 +0000 (15:55 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Jun 2025 10:05:29 +0000 (11:05 +0100)
commit979408dbd76fdde5d3b3efbac2cb94aaa9b7fb9e
tree1a0d5e92daafaa345cf1262a13a10f4323ca223c
parentf29503cd7a1e45e05bfa0a6285b2604f062dc245
media: rkvdec: Initialize the m2m context before the controls

[ Upstream commit d43d7db3c8a1868dcbc6cb8de90a3cdf309d6cbb ]

Setting up the control handler calls into .s_ctrl ops. While validating
the controls the ops may need to access some of the context state, which
could lead to a crash if not properly initialized.

Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/staging/media/rkvdec/rkvdec.c