]> www.infradead.org Git - users/jedix/linux-maple.git/commit
media: msi2500: set lock before calling vb2_queue_init()
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Mon, 2 Sep 2024 14:04:49 +0000 (16:04 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Sat, 12 Oct 2024 13:53:52 +0000 (15:53 +0200)
commitfee248fb86ae229b82dee5c4764681078f0668c5
treeea1ea1152be51f2cd28f19e23c2cfcb957f0c5da
parent3653f14841dc2a76d1fb9997e249715899bf4fb1
media: msi2500: set lock before calling vb2_queue_init()

The vb2_queue_init() will expect the vb2_queue lock pointer to be set in
the future. So for those drivers that set the lock later, move it up to
before the vb2_queue_init() call.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/usb/msi2500/msi2500.c