diff options
author | Pavel Skripkin <paskripkin@gmail.com> | 2021-07-07 19:54:30 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-09-08 08:49:02 +0200 |
commit | 4405ea221deaf7c5b4b5d40f8186e9574ea43196 (patch) | |
tree | d74b6da26ed72795e3ab856cfb01f1d0f815963d /drivers/rtc/rtc-tegra.c | |
parent | ad5e13f15db76844365a959a6e4c79ae5f48129c (diff) | |
download | linux-stable-4405ea221deaf7c5b4b5d40f8186e9574ea43196.tar.gz linux-stable-4405ea221deaf7c5b4b5d40f8186e9574ea43196.tar.bz2 linux-stable-4405ea221deaf7c5b4b5d40f8186e9574ea43196.zip |
media: stkwebcam: fix memory leak in stk_camera_probe
commit 514e97674400462cc09c459a1ddfb9bf39017223 upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/rtc/rtc-tegra.c')
0 files changed, 0 insertions, 0 deletions