linux-brain/drivers/media/usb/cpia2
Pavel Skripkin 162b85d3cf media: cpia2: fix memory leak in cpia2_usb_probe
[ Upstream commit be8656e62e9e791837b606a027802b504a945c97 ]

syzbot reported leak in cpia2 usb driver. The problem was
in invalid error handling.

v4l2_device_register() is called in cpia2_init_camera_struct(), but
all error cases after cpia2_init_camera_struct() did not call the
v4l2_device_unregister()

Reported-by: syzbot+d1e69c888f0d3866ead4@syzkaller.appspotmail.com
Signed-off-by: Pavel Skripkin <paskripkin@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-07-14 16:53:11 +02:00
..
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
cpia2.h media: cpia2: fix memory leak in cpia2_usb_probe 2021-07-14 16:53:11 +02:00
cpia2_core.c media: cpia2: fix memory leak in cpia2_usb_probe 2021-07-14 16:53:11 +02:00
cpia2_registers.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157 2019-05-30 11:26:37 -07:00
cpia2_usb.c media: cpia2: fix memory leak in cpia2_usb_probe 2021-07-14 16:53:11 +02:00
cpia2_v4l.c media: drivers/media: don't set pix->priv = 0 2019-07-23 08:48:33 -04:00