Files
Linux/drivers/usb/serial
Johan Hovold 9715a43eea USB: serial: quatech2: handle unbound ports
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 <[email protected]>     # 3.5
Reviewed-by: Greg Kroah-Hartman <[email protected]>
Signed-off-by: Johan Hovold <[email protected]>
2020-01-17 16:22:59 +01:00
..
…
2019-04-30 10:25:04 +02:00
…
…
…
…
2019-11-21 14:39:41 +01:00
…
…
…
…
…
…
…