diff options
-rw-r--r-- | drivers/usb/serial/usb-serial.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/usb/serial/usb-serial.c b/drivers/usb/serial/usb-serial.c index 99188c92068b..21dd72a5a715 100644 --- a/drivers/usb/serial/usb-serial.c +++ b/drivers/usb/serial/usb-serial.c | |||
@@ -1161,10 +1161,7 @@ void usb_serial_disconnect(struct usb_interface *interface) | |||
1161 | if (port) { | 1161 | if (port) { |
1162 | struct tty_struct *tty = tty_port_tty_get(&port->port); | 1162 | struct tty_struct *tty = tty_port_tty_get(&port->port); |
1163 | if (tty) { | 1163 | if (tty) { |
1164 | /* The hangup will occur asynchronously but | 1164 | tty_vhangup(tty); |
1165 | the object refcounts will sort out all the | ||
1166 | cleanup */ | ||
1167 | tty_hangup(tty); | ||
1168 | tty_kref_put(tty); | 1165 | tty_kref_put(tty); |
1169 | } | 1166 | } |
1170 | kill_traffic(port); | 1167 | kill_traffic(port); |