linux-uconsole/drivers/usb/serial
Johan Hovold 392950d7a9 USB: serial: quatech2: handle unbound ports
commit 9715a43eea upstream.

Check for NULL port data in the modem- and line-status handlers to avoid
dereferencing a NULL pointer in the unlikely case where a port device
isn't bound to a driver (e.g. after an allocation failure on port
probe).

Note that the other (stubbed) event handlers qt2_process_xmit_empty()
and qt2_process_flush() would need similar sanity checks in case they
are ever implemented.

Fixes: f7a33e608d ("USB: serial: add quatech2 usb to serial driver")
Cc: stable <stable@vger.kernel.org>     # 3.5
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-01-23 08:21:28 +01:00
..
aircable.c
ark3116.c
belkin_sa.c
belkin_sa.h
bus.c
ch341.c USB: serial: ch341: handle unbound port at reset_resume 2020-01-23 08:21:27 +01:00
console.c
cp210x.c usb-serial: cp201x: support Mark-10 digital force gauge 2019-12-01 09:17:41 +01:00
cyberjack.c
cypress_m8.c USB: serial: cypress_m8: fix interrupt-out transfer length 2019-11-24 08:20:16 +01:00
cypress_m8.h
digi_acceleport.c
empeg.c
ezusb_convert.pl
f81232.c USB: serial: f81232: fix interrupt worker not stop 2019-05-10 17:54:10 +02:00
f81534.c USB: serial: f81534: fix reading old/new IC config 2019-12-13 08:51:29 +01:00
ftdi_sio.c USB: serial: ftdi_sio: add device IDs for U-Blox C099-F9P 2019-12-05 09:21:26 +01:00
ftdi_sio.h
ftdi_sio_ids.h USB: serial: ftdi_sio: add device IDs for U-Blox C099-F9P 2019-12-05 09:21:26 +01:00
garmin_gps.c
generic.c USB: serial: fix unthrottle races 2019-05-16 19:41:18 +02:00
io_16654.h
io_edgeport.c USB: serial: io_edgeport: add missing active-port sanity check 2020-01-23 08:21:28 +01:00
io_edgeport.h
io_ionsp.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 USB: serial: keyspan: handle unbound ports 2020-01-23 08:21:28 +01:00
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 USB: serial: mos7720: fix remote wakeup 2019-12-01 09:17:43 +01:00
mos7840.c USB: serial: mos7840: fix remote wakeup 2019-12-01 09:17:43 +01:00
mxuport.c
navman.c
omninet.c
opticon.c USB: serial: opticon: fix control-message timeouts 2020-01-23 08:21:27 +01:00
option.c USB: serial: option: add support for Quectel RM500Q in QDL mode 2020-01-23 08:21:27 +01:00
oti6858.c
oti6858.h
pl2303.c USB: serial: pl2303: add Allied Telesis VT-Kit3 2019-06-19 08:18:06 +02:00
pl2303.h USB: serial: pl2303: add Allied Telesis VT-Kit3 2019-06-19 08:18:06 +02:00
qcaux.c
qcserial.c
quatech2.c USB: serial: quatech2: handle unbound ports 2020-01-23 08:21:28 +01:00
safe_serial.c
sierra.c
spcp8x5.c
ssu100.c
symbolserial.c
ti_usb_3410_5052.c USB: serial: ti_usb_3410_5052: fix port-close races 2019-10-29 09:19:46 +01:00
upd78f0730.c
usb-serial-simple.c USB: serial: simple: Add Motorola Solutions TETRA MTP3xxx and MTP85xx 2020-01-23 08:21:27 +01:00
usb-serial.c USB: serial: suppress driver bind attributes 2020-01-23 08:21:27 +01:00
usb-wwan.h USB: serial: option: add ZLP support for 0x1bc7/0x9010 2020-01-14 20:07:04 +01:00
usb_debug.c
usb_wwan.c USB: serial: option: add ZLP support for 0x1bc7/0x9010 2020-01-14 20:07:04 +01:00
visor.c
visor.h
whiteheat.c USB: serial: whiteheat: fix line-speed endianness 2019-11-06 13:06:18 +01:00
whiteheat.h USB: serial: whiteheat: fix line-speed endianness 2019-11-06 13:06:18 +01:00
wishbone-serial.c
xsens_mt.c