android_kernel_samsung_msm8976/drivers/usb/serial
Alexey Klimov ab38396caf USB: serial: fix memleak in driver-registration error path
commit 647024a7df36014bbc4479d92d88e6b77c0afcf6 upstream.

udriver struct allocated by kzalloc() will not be freed
if usb_register() and next calls fail. This patch fixes this
by adding one more step with kfree(udriver) in error path.

Signed-off-by: Alexey Klimov <klimov.linux@gmail.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Willy Tarreau <w@1wt.eu>
2019-07-27 21:42:16 +02:00
..
Kconfig
Makefile
Makefile-keyspan_pda_fw
aircable.c
ark3116.c
belkin_sa.c
belkin_sa.h
bus.c USB: serial: fix potential use-after-free after failed probe 2015-03-18 13:22:31 +01:00
ch341.c
console.c USB: serial: console: fix use-after-free after failed setup 2018-08-20 12:10:04 +02:00
cp210x.c USB: serial: cp210x: add Straizona Focusers device ids 2016-06-07 10:42:53 +02:00
csvt.c usb:misc: Add support for HSIC PID 0x909F 2014-03-19 09:36:03 -07:00
cyberjack.c
cypress_m8.c USB: cypress_m8: add endpoint sanity check 2016-06-07 10:42:45 +02:00
cypress_m8.h USB: cypress_m8: fix ring-indicator detection and reporting 2014-02-06 11:08:12 -08:00
digi_acceleport.c USB: digi_acceleport: do sanity checking for the number of ports 2016-06-07 10:42:45 +02:00
empeg.c
ezusb_convert.pl
f81232.c
ftdi_sio.c USB: serial: ftdi_sio: add support for Yaesu SCU-18 cable 2016-02-19 14:22:40 -08:00
ftdi_sio.h
ftdi_sio_ids.h USB: serial: ftdi_sio: add support for Yaesu SCU-18 cable 2016-02-19 14:22:40 -08:00
funsoft.c
garmin_gps.c
generic.c USB: serial: fix infinite wait_until_sent timeout 2015-03-18 13:22:31 +01:00
hp4x.c
io_16654.h
io_edgeport.c USB: serial: io_edgeport: fix memory leaks in probe error path 2016-06-07 10:42:55 +02:00
io_edgeport.h
io_ionsp.h
io_tables.h
io_ti.c USB: io_ti: fix firmware download on big-endian machines (part 2) 2014-06-11 12:03:26 -07:00
io_ti.h
io_usbvend.h USB: io_ti: fix firmware download on big-endian machines (part 2) 2014-06-11 12:03:26 -07:00
ipaq.c USB: ipaq.c: fix a timeout loop 2016-01-28 21:49:32 -08:00
ipw.c
ir-usb.c
iuu_phoenix.c
iuu_phoenix.h
keyspan.c USB: serial: keyspan: fix use-after-free in probe error path 2016-06-07 10:42:55 +02:00
keyspan.h
keyspan_pda.c
keyspan_usa26msg.h
keyspan_usa28msg.h
keyspan_usa49msg.h
keyspan_usa67msg.h
keyspan_usa90msg.h
kl5kusb105.c
kl5kusb105.h
kobil_sct.c
kobil_sct.h
mct_u232.c USB: mct_u232: add sanity checking in probe 2016-06-07 10:42:45 +02:00
mct_u232.h
metro-usb.c
mos7720.c
mos7840.c USB: mos7840: correct handling of CS5 setting 2013-12-11 22:36:28 -08:00
moto_modem.c
navman.c
omninet.c
opticon.c USB: opticon: fix non-atomic allocation in write path 2014-11-14 08:47:59 -08:00
option.c USB: serial: option: add support for Telit LE910 PID 0x1206 2019-07-27 21:41:46 +02:00
oti6858.c
oti6858.h
pl2303.c USB: pl2303: Remove support for Samsung I330 2015-06-05 23:19:56 -07:00
pl2303.h USB: pl2303: Remove support for Samsung I330 2015-06-05 23:19:56 -07:00
qcaux.c
qcserial.c Merge upstream tag 'v3.10.49' into msm-3.10 2014-08-20 13:23:09 -07:00
quatech2.c USB: serial: quatech2: fix use-after-free in probe error path 2016-06-07 10:42:55 +02:00
safe_serial.c
siemens_mpi.c
sierra.c USB: sierra: add 1199:68AB device ID 2015-08-16 20:51:37 -07:00
spcp8x5.c USB: spcp8x5: correct handling of CS5 setting 2013-12-11 22:36:28 -08:00
ssu100.c USB: ssu100: fix overrun-error reporting 2014-12-06 15:05:47 -08:00
symbolserial.c USB: symbolserial: Use usb_get_serial_port_data 2015-09-21 10:00:07 -07:00
ti_usb_3410_5052.c USB: ti_usb_3410_502: Fix ID table size 2016-02-19 14:22:40 -08:00
ti_usb_3410_5052.h
usb-serial.c USB: serial: fix memleak in driver-registration error path 2019-07-27 21:42:16 +02:00
usb-wwan.h
usb_debug.c
usb_wwan.c Merge upstream tag 'v3.10.49' into msm-3.10 2014-08-20 13:23:09 -07:00
visor.c USB: visor: fix null-deref at probe 2016-02-19 14:22:40 -08:00
visor.h
vivopay-serial.c
whiteheat.c USB: whiteheat: fix potential null-deref at probe 2015-10-22 14:37:51 -07:00
whiteheat.h
wishbone-serial.c
xsens_mt.c
zio.c
zte_ev.c USB: zte_ev: fix removed PIDs 2014-10-05 14:54:09 -07:00