Files
twx-linux/drivers
Johan Hovold a495fd19cc hso: fix NULL-deref on tty open
[ Upstream commit 8353da9fa6 ]

Fix NULL-pointer dereference on tty open due to a failure to handle a
missing interrupt-in endpoint when probing modem ports:

	BUG: kernel NULL pointer dereference, address: 0000000000000006
	...
	RIP: 0010:tiocmget_submit_urb+0x1c/0xe0 [hso]
	...
	Call Trace:
	hso_start_serial_device+0xdc/0x140 [hso]
	hso_serial_open+0x118/0x1b0 [hso]
	tty_open+0xf1/0x490

Fixes: 542f548236 ("tty: Modem functions for the HSO driver")
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-10-07 18:57:20 +02:00
..
2019-10-07 18:57:03 +02:00
2019-10-07 18:56:58 +02:00
2019-10-07 18:57:08 +02:00
2019-09-19 09:09:40 +02:00
2019-10-05 13:09:45 +02:00
2019-10-07 18:57:08 +02:00
2019-10-07 18:57:20 +02:00
2019-07-26 09:14:05 +02:00
2019-09-16 08:22:25 +02:00
2019-05-31 06:46:14 -07:00