]> git.hungrycats.org Git - linux/commitdiff
USB: io_ti: fix TIOCGSERIAL
authorJohan Hovold <jhovold@gmail.com>
Thu, 18 Apr 2013 15:33:17 +0000 (17:33 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 May 2013 03:33:06 +0000 (20:33 -0700)
commit b6fd35ee5766143d6bc3c333edf374c336ebdca6 upstream.

Fix regression introduced by commit f40d78155 ("USB: io_ti: kill custom
closing_wait implementation") which made TIOCGSERIAL return the wrong
value for closing_wait.

Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/serial/io_ti.c

index 7777172206de1b42a971acb0747d97180230d670..38f2489b289d83391461cdfea2980981dc3dc740 100644 (file)
@@ -2392,7 +2392,7 @@ static int get_serial_info(struct edgeport_port *edge_port,
 
        cwait = edge_port->port->port.closing_wait;
        if (cwait != ASYNC_CLOSING_WAIT_NONE)
-               cwait = jiffies_to_msecs(closing_wait) / 10;
+               cwait = jiffies_to_msecs(cwait) / 10;
 
        memset(&tmp, 0, sizeof(tmp));