]> www.infradead.org Git - users/jedix/linux-maple.git/commit
media: airspy: set lock before calling vb2_queue_init()
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Mon, 2 Sep 2024 14:04:51 +0000 (16:04 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Sat, 12 Oct 2024 13:53:54 +0000 (15:53 +0200)
commit8d04fcc76f82e7025444b1d79d5a00dd1d2388b9
tree6b3b475386ac5720d3b7fad3a44ab4ab8bb1eb83
parentcf78f3d3a6766f7f846320e32ff3109f1e192aad
media: airspy: 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/airspy/airspy.c