From dcb2a911f1097d8a78f477943b43cf813461c60c Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Sat, 19 Sep 2009 13:13:23 -0700 Subject: [PATCH] --- yaml --- r: 163835 b: refs/heads/master c: d2b391822a11302add9e46476f3da4e18e6de84c h: refs/heads/master i: 163833: 6c5ab924c109d095ddbb4ab8292542fbf28ea426 163831: bc9ce8868e46e09fb8b24c2e1177e9b1b46687dd v: v3 --- [refs] | 2 +- trunk/drivers/usb/serial/usb-serial.c | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/[refs] b/[refs] index 7ad9c3ce02fa..a630c3cbea88 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 9b80fee149a875a6292b2556ab2c64dc7ab7d6f5 +refs/heads/master: d2b391822a11302add9e46476f3da4e18e6de84c diff --git a/trunk/drivers/usb/serial/usb-serial.c b/trunk/drivers/usb/serial/usb-serial.c index 99188c92068b..21dd72a5a715 100644 --- a/trunk/drivers/usb/serial/usb-serial.c +++ b/trunk/drivers/usb/serial/usb-serial.c @@ -1161,10 +1161,7 @@ void usb_serial_disconnect(struct usb_interface *interface) if (port) { struct tty_struct *tty = tty_port_tty_get(&port->port); if (tty) { - /* The hangup will occur asynchronously but - the object refcounts will sort out all the - cleanup */ - tty_hangup(tty); + tty_vhangup(tty); tty_kref_put(tty); } kill_traffic(port);