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
..
aircable.c
ark3116.c
belkin_sa.c
belkin_sa.h
bus.c
ch341.c
console.c USB: serial: console: fix use-after-free after failed setup 2018-08-20 12:10:04 +02:00
cp210x.c
csvt.c
cyberjack.c
cypress_m8.c
cypress_m8.h
digi_acceleport.c
empeg.c
ezusb_convert.pl
f81232.c
ftdi_sio.c
ftdi_sio.h
ftdi_sio_ids.h
funsoft.c
garmin_gps.c
generic.c
hp4x.c
io_16654.h
io_edgeport.c
io_edgeport.h
io_ionsp.h
io_tables.h
io_ti.c
io_ti.h
io_usbvend.h
ipaq.c
ipw.c
ir-usb.c
iuu_phoenix.c
iuu_phoenix.h
Kconfig
keyspan.c
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
Makefile
Makefile-keyspan_pda_fw
mct_u232.c
mct_u232.h
metro-usb.c
mos7720.c
mos7840.c
moto_modem.c
navman.c
omninet.c
opticon.c
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
pl2303.h
qcaux.c
qcserial.c
quatech2.c
safe_serial.c
siemens_mpi.c
sierra.c
spcp8x5.c
ssu100.c
symbolserial.c
ti_usb_3410_5052.c
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
visor.c
visor.h
vivopay-serial.c
whiteheat.c
whiteheat.h
wishbone-serial.c
xsens_mt.c
zio.c
zte_ev.c