]> www.infradead.org Git - users/jedix/linux-maple.git/commit
media: hackrf: set lock before calling vb2_queue_init()
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Mon, 2 Sep 2024 14:04:50 +0000 (16:04 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Sat, 12 Oct 2024 13:53:53 +0000 (15:53 +0200)
commitcf78f3d3a6766f7f846320e32ff3109f1e192aad
tree120c839b9cf2e4770d7799aca91328fd6b1ecc2c
parentfee248fb86ae229b82dee5c4764681078f0668c5
media: hackrf: 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+renesas@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/usb/hackrf/hackrf.c