diff options
| author | Pavel Skripkin <paskripkin@gmail.com> | 2021-04-21 22:43:45 +0300 | 
|---|---|---|
| committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2021-05-19 10:51:39 +0300 | 
| commit | be8656e62e9e791837b606a027802b504a945c97 (patch) | |
| tree | ebdef2bdb367e675d07ada89108be1aac4bd9909 /drivers/media/usb/hackrf/hackrf.c | |
| parent | 27ba44270b5ea3d6ec71e148051becffb51d2324 (diff) | |
| download | linux-be8656e62e9e791837b606a027802b504a945c97.tar.xz | |
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/hackrf/hackrf.c')
0 files changed, 0 insertions, 0 deletions
