summaryrefslogtreecommitdiffstats
path: root/drivers/usb/serial/io_ti.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2013-01-18 14:06:29 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2013-01-18 14:06:29 -0800
commit5da1f88b8b727dc3a66c52d4513e871be6d43d19 (patch)
tree01fb69abee45132e6ba7e6be1e8176f3bccdee07 /drivers/usb/serial/io_ti.c
parent793388a797ba29cd8baed241301601814f85a308 (diff)
parent1ee0a224bc9aad1de496c795f96bc6ba2c394811 (diff)
downloadblackbird-op-linux-5da1f88b8b727dc3a66c52d4513e871be6d43d19.tar.gz
blackbird-op-linux-5da1f88b8b727dc3a66c52d4513e871be6d43d19.zip
Merge tag 'usb-3.8-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb
Pull USB fixes from Greg Kroah-Hartman: "Here are 3 USB patches for 3.8-rc4. Two of them are new device id patches, and the third fixes a reported oops in the io_ti USB serial driver" * tag 'usb-3.8-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb: USB: io_ti: Fix NULL dereference in chase_port() USB: option: add TP-LINK HSUPA Modem MA180 USB: option: blacklist network interface on ONDA MT8205 4G LTE
Diffstat (limited to 'drivers/usb/serial/io_ti.c')
-rw-r--r--drivers/usb/serial/io_ti.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/usb/serial/io_ti.c b/drivers/usb/serial/io_ti.c
index 58184f3de686..82afc4d6a327 100644
--- a/drivers/usb/serial/io_ti.c
+++ b/drivers/usb/serial/io_ti.c
@@ -530,6 +530,9 @@ static void chase_port(struct edgeport_port *port, unsigned long timeout,
wait_queue_t wait;
unsigned long flags;
+ if (!tty)
+ return;
+
if (!timeout)
timeout = (HZ * EDGE_CLOSING_WAIT)/100;
OpenPOWER on IntegriCloud