summaryrefslogtreecommitdiff
path: root/drivers/media/pci/cobalt/cobalt-driver.c
diff options
context:
space:
mode:
authorPavel Skripkin <paskripkin@gmail.com>2021-04-21 22:43:45 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-07-14 17:53:11 +0300
commit162b85d3cf25d45de3acb24c5a8849c539057991 (patch)
tree9fd456619cd9fc9846b9c282752e04835b133ff1 /drivers/media/pci/cobalt/cobalt-driver.c
parent5c8c5edb28f3e778bb4caeb32ed35e735970c2a9 (diff)
downloadlinux-162b85d3cf25d45de3acb24c5a8849c539057991.tar.xz
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>
Diffstat (limited to 'drivers/media/pci/cobalt/cobalt-driver.c')
0 files changed, 0 insertions, 0 deletions