]> git.baikalelectronics.ru Git - kernel.git/commit
media: vivid: fix control handler mutex deadlock
authorHans Verkuil <hverkuil@xs4all.nl>
Fri, 21 Oct 2022 12:21:25 +0000 (13:21 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Tue, 25 Oct 2022 15:41:10 +0000 (16:41 +0100)
commit67859b8ecc4e2033f8ecb08ec121d90bf7375ecf
treed446cd14a294e9c4a911cf50840f2234518331f4
parent8fd3bbf345cd96f284266ba863b20844ebc628a6
media: vivid: fix control handler mutex deadlock

vivid_update_format_cap() can be called from an s_ctrl callback.
In that case (keep_controls == true) no control framework functions
can be called that take the control handler mutex.

The new call to v4l2_ctrl_modify_dimensions() did exactly that.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Fixes: 4e5b0a13bbe3 (media: vivid: add pixel_array test control)
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/test-drivers/vivid/vivid-vid-cap.c