]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
media: chips-media: wave5: Fix Reports from Kernel Lock Validator
authorBrandon Brnich <b-brnich@ti.com>
Thu, 2 Apr 2026 18:45:54 +0000 (13:45 -0500)
committerHans Verkuil <hverkuil+cisco@kernel.org>
Mon, 4 May 2026 07:31:04 +0000 (09:31 +0200)
commit7d5d364f8b2dcc9b6b92456fb55632fde4a4d96f
tree6fc3931b7b9081f1a63e5210d473ba78ea276562
parent7cdbd7bb21949a8fda10c7104a2b12ee363cbf5c
media: chips-media: wave5: Fix Reports from Kernel Lock Validator

handle_dynamic_resolution change requires that the state_lock be acquired
based on the lockdep_assert_held. However, the
handle_dynamic_resolution_change call in initialize_sequence does not
properly obtain the lock before calling.

Since the v4l2_ctrl_find and s_ctrl can sleep, they should not be called
while a lock is already held. Store off the fbc_buf_count then properly
update control once lock has been freed.

Signed-off-by: Brandon Brnich <b-brnich@ti.com>
Tested-by: Jackson Lee <jackson.lee@chipsnmedia.com>
Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
drivers/media/platform/chips-media/wave5/wave5-vpu-dec.c