linux/drivers/media/usb/uvc
Laurent Pinchart 21b1b6797f media: uvcvideo: Fix invalid pointer in uvc_ctrl_init_ctrl()
The handling of per-device mappings introduced in commit 86f7ef7731
("media: uvcvideo: Add support for per-device control mapping
overrides") overwrote the mapping variable after it was initialized and
before it was used, leading to usage of an invalid pointer for devices
with per-device mappings. Fix it.

Fixes: 86f7ef7731 ("media: uvcvideo: Add support for per-device control mapping overrides")
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
2022-07-27 20:25:59 +02:00
..
Kconfig media: Kconfig: cleanup VIDEO_DEV dependencies 2022-03-18 05:58:35 +01:00
Makefile media: uvcvideo: Add a metadata device node 2018-01-04 06:41:47 -05:00
uvc_ctrl.c media: uvcvideo: Fix invalid pointer in uvc_ctrl_init_ctrl() 2022-07-27 20:25:59 +02:00
uvc_debugfs.c media: usb: uvc: no need to check return value of debugfs_create functions 2020-09-26 10:15:17 +02:00
uvc_driver.c media: uvcvideo: Limit power line control for Acer EasyCamera 2022-07-16 08:52:56 +01:00
uvc_entity.c media: uvcvideo: Use dev_ printk aliases 2021-01-27 15:06:10 +01:00
uvc_isight.c media: uvcvideo: Fix comment blocks style 2022-07-16 08:48:42 +01:00
uvc_metadata.c media: uvcvideo: Use dev->name for querycap() 2021-09-30 10:07:47 +02:00
uvc_queue.c media: uvcvideo: Fix comment blocks style 2022-07-16 08:48:42 +01:00
uvc_status.c media: uvcvideo: Fix comment blocks style 2022-07-16 08:48:42 +01:00
uvc_v4l2.c media: uvcvideo: Remove unneeded goto 2022-07-16 08:53:22 +01:00
uvc_video.c media: uvcvideo: Fix comment blocks style 2022-07-16 08:48:42 +01:00
uvcvideo.h media: uvcvideo: Add support for per-device control mapping overrides 2022-07-16 08:50:27 +01:00