media: rkvdec: Initialize the m2m context before the controls

[ Upstream commit d43d7db3c8 ]

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>
This commit is contained in:
Nicolas Dufresne 2025-05-01 15:55:48 -04:00 • committed by Greg Kroah-Hartman
commit 979408dbd7