diff options
author | Pavel Skripkin <paskripkin@gmail.com> | 2021-07-07 20:54:30 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2021-07-22 15:01:55 +0300 |
commit | 514e97674400462cc09c459a1ddfb9bf39017223 (patch) | |
tree | 3abb5ba063365647a3fa5201b183ad855f3d22f1 /drivers/media/i2c/tvp7002_reg.h | |
parent | 7910c23d704794461aba7a72b07aae582496b781 (diff) | |
download | linux-514e97674400462cc09c459a1ddfb9bf39017223.tar.xz |
media: stkwebcam: fix memory leak in stk_camera_probe
My local syzbot instance hit memory leak in usb_set_configuration().
The problem was in unputted usb interface. In case of errors after
usb_get_intf() the reference should be putted to correclty free memory
allocated for this interface.
Fixes: ec16dae5453e ("V4L/DVB (7019): V4L: add support for Syntek DC1125 webcams")
Cc: stable@vger.kernel.org
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/i2c/tvp7002_reg.h')
0 files changed, 0 insertions, 0 deletions