diff options
author | Pavel Skripkin <paskripkin@gmail.com> | 2021-04-21 21:43:45 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2021-05-19 09:51:39 +0200 |
commit | be8656e62e9e791837b606a027802b504a945c97 (patch) | |
tree | ebdef2bdb367e675d07ada89108be1aac4bd9909 /drivers/media/usb/msi2500 | |
parent | media: rkisp1: rkisp1-params.c: Fix typos (diff) | |
download | linux-be8656e62e9e791837b606a027802b504a945c97.tar.xz linux-be8656e62e9e791837b606a027802b504a945c97.zip |
media: cpia2: fix memory leak in cpia2_usb_probe
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>
Diffstat (limited to 'drivers/media/usb/msi2500')
0 files changed, 0 insertions, 0 deletions