alistair23-linux/drivers/usb/serial
Johan Hovold a8f2ae7a3a USB: mct_u232: fix port-data memory leak
Fix port-data memory leak by moving port data allocation and
deallocation to port_probe and port_remove.

Since commit 0998d06310 (device-core: Ensure drvdata = NULL when no
driver is bound) the port private data is no longer freed at release as
it is no longer accessible.

Note that the write waitqueue was initialised but never used.

Compile-only tested.

Cc: <stable@vger.kernel.org>
Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-10-25 09:37:04 -07:00
..
aircable.c
ark3116.c USB: ark3116: fix NULL-pointer dereference 2012-10-16 10:25:54 -07:00
belkin_sa.c USB: belkin_sa: fix port-data memory leak 2012-10-16 10:25:54 -07:00
belkin_sa.h
bus.c
ch341.c USB: ch341: fix port-data memory leak 2012-10-25 09:36:57 -07:00
console.c USB merge for 3.7-rc1 2012-10-01 13:23:01 -07:00
cp210x.c USB: cp210x: fix port-data memory leak 2012-10-16 10:25:54 -07:00
cyberjack.c USB: cyberjack: fix port-data memory leak 2012-10-16 10:25:54 -07:00
cypress_m8.c USB: cypress_m8: fix port-data memory leak 2012-10-17 13:47:57 -07:00
cypress_m8.h
digi_acceleport.c USB: digi_acceleport: fix port-data memory leak 2012-10-25 09:36:57 -07:00
empeg.c USB merge for 3.7-rc1 2012-10-01 13:23:01 -07:00
ezusb_convert.pl
f81232.c USB: f81232: fix port-data memory leak 2012-10-17 13:47:58 -07:00
ftdi_sio.c USB merge for 3.7-rc1 2012-10-01 13:23:01 -07:00
ftdi_sio.h
ftdi_sio_ids.h USB: ftdi_sio: add TIAO USB Multi-Protocol Adapter (TUMPA) support 2012-09-24 13:42:42 -07:00
funsoft.c
garmin_gps.c USB: fix port probing and removal in garmin_gps 2012-10-16 10:25:55 -07:00
generic.c USB: Serial: usb-serial: remove debug module parameter 2012-09-18 16:05:17 +01:00
hp4x.c
io_16654.h
io_edgeport.c USB: io_edgeport: fix port-data memory leak 2012-10-17 13:47:58 -07:00
io_edgeport.h
io_ionsp.h
io_tables.h USB: io_edgeport: fix port-data memory leak 2012-10-17 13:47:58 -07:00
io_ti.c USB: io_ti: fix sysfs-attribute creation 2012-10-18 08:08:47 -07:00
io_ti.h
io_usbvend.h
ipaq.c
ipw.c
ir-usb.c USB merge for 3.7-rc1 2012-10-01 13:23:01 -07:00
iuu_phoenix.c USB: iuu_phoenix: fix sysfs-attribute creation 2012-10-18 08:08:47 -07:00
iuu_phoenix.h
Kconfig USB: ezusb: move ezusb.c from drivers/usb/serial to drivers/usb/misc 2012-09-26 14:20:28 -07:00
keyspan.c USB merge for 3.7-rc1 2012-10-01 13:23:01 -07:00
keyspan.h
keyspan_pda.c USB: keyspan_pda: fix port-data memory leak 2012-10-17 13:47:58 -07:00
keyspan_usa26msg.h
keyspan_usa28msg.h
keyspan_usa49msg.h
keyspan_usa67msg.h
keyspan_usa90msg.h
kl5kusb105.c USB: kl5kusb105: fix port-data memory leak 2012-10-17 13:47:59 -07:00
kl5kusb105.h
kobil_sct.c USB: kobil_sct: fix port-data memory leak 2012-10-17 13:47:58 -07:00
kobil_sct.h
Makefile USB: ezusb: move ezusb.c from drivers/usb/serial to drivers/usb/misc 2012-09-26 14:20:28 -07:00
Makefile-keyspan_pda_fw
mct_u232.c USB: mct_u232: fix port-data memory leak 2012-10-25 09:37:04 -07:00
mct_u232.h
metro-usb.c USB: metro-usb: fix io after disconnect 2012-10-25 09:36:57 -07:00
mos7720.c USB: mos7720: fix port-data memory leak 2012-10-25 09:36:58 -07:00
mos7840.c USB merge for 3.7-rc1 2012-10-01 13:23:01 -07:00
moto_modem.c
navman.c
omninet.c USB: omninet: fix port-data memory leak 2012-10-25 09:36:58 -07:00
opticon.c USB: opticon: fix memory leak in error path 2012-10-25 09:36:59 -07:00
option.c USB: option: add more ZTE devices 2012-10-18 08:27:21 -07:00
oti6858.c USB: oti6858: fix port-data memory leak 2012-10-17 13:47:59 -07:00
oti6858.h
pl2303.c USB: pl2303: fix port-data memory leak 2012-10-16 10:25:54 -07:00
pl2303.h
qcaux.c USB: qcaux: add Pantech vendor class match 2012-09-21 09:42:02 -07:00
qcserial.c
quatech2.c USB: quatech2: fix io after disconnect 2012-10-25 09:36:58 -07:00
safe_serial.c USB: serial: safe-serial: fix up printk() usage 2012-09-18 17:07:24 +01:00
siemens_mpi.c
sierra.c USB: serial: Fix memory leak in sierra_release() 2012-10-24 11:45:34 -07:00
spcp8x5.c USB: spcp8x5: fix port-data memory leak 2012-10-17 13:48:00 -07:00
ssu100.c USB: ssu100: fix port-data memory leak 2012-10-17 13:47:59 -07:00
symbolserial.c
ti_usb_3410_5052.c USB: ti_usb_3410_5052: fix port-data memory leak 2012-10-17 13:47:59 -07:00
ti_usb_3410_5052.h
usb-serial.c USB merge for 3.7-rc1 2012-10-01 13:23:01 -07:00
usb-wwan.h
usb_debug.c
usb_wwan.c USB merge for 3.7-rc1 2012-10-01 13:23:01 -07:00
visor.c USB: Serial: visor.c: remove debug module parameter 2012-09-18 10:16:28 +01:00
visor.h
vivopay-serial.c
whiteheat.c USB: whiteheat: fix port-data memory leak 2012-10-25 09:36:57 -07:00
whiteheat.h
zio.c
zte_ev.c