Files
twx-linux/drivers/net/usb
Johan Hovold 88aa7727a6 net: hso: fix muxed tty registration
commit e8f69b16ee upstream.

If resource allocation and registration fail for a muxed tty device
(e.g. if there are no more minor numbers) the driver should not try to
deregister the never-registered (or already-deregistered) tty.

Fix up the error handling to avoid dereferencing a NULL pointer when
attempting to remove the character device.

Fixes: 72dc1c096c ("HSO: add option hso driver")
Cc: stable@vger.kernel.org	# 2.6.27
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>
2021-10-06 15:31:13 +02:00
..
…
…
2021-06-30 08:48:21 -04:00
…
…
…
2021-10-06 15:31:13 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…