]> www.infradead.org Git - users/jedix/linux-maple.git/commit
media: platform: video-mux: Fix mutex locking
authorPaul Elder <paul.elder@ideasonboard.com>
Mon, 9 Sep 2024 15:48:28 +0000 (17:48 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 16 Oct 2024 07:32:41 +0000 (09:32 +0200)
commit1ee5e1fd82950743ecb9f6c99bd240098a9c6307
treec3bef543e4883d7a5e540ea6ffe6aed1441ff0b6
parent2f091c476db63f56bb3640bd04d26812f1ea1573
media: platform: video-mux: Fix mutex locking

The current order of locking between the driver mutex and the v4l2 subdev
state lock causes a circular locking dependency when trying to set up a
link. Fix this.

Signed-off-by: Paul Elder <paul.elder@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
[Sakari Ailus: Fix spelling in commit message.]
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/video-mux.c