]> git.ipfire.org Git - thirdparty/linux.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)
committerHans Verkuil <hverkuil@xs4all.nl>
Thu, 15 May 2025 06:13:31 +0000 (08:13 +0200)
commitd43d7db3c8a1868dcbc6cb8de90a3cdf309d6cbb
treec7304154016966e77a2cf4ca635475b4b9074846
parent45029d3ee28c6bb85173f21adace914979fa33a6
media: rkvdec: Initialize the m2m context before the controls

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>
drivers/staging/media/rkvdec/rkvdec.c