Commit 887908f1 authored by Nicolas Dufresne's avatar Nicolas Dufresne Committed by Greg Kroah-Hartman
Browse files

media: rkvdec: Initialize the m2m context before the controls



[ Upstream commit d43d7db3 ]

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: default avatarNicolas Dufresne <nicolas.dufresne@collabora.com>
Signed-off-by: default avatarHans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent bfa4655d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment