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>
Fri, 19 Apr 2013 17:24:13 +0000 (10:24 -0700)
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>
Cc: stable <stable@vger.kernel.org> # 3.9
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/serial/io_ti.c

index f2a1601775b10c981bf3b0e2ce3b9d20fce78f81..ab979a2e6953f23cafee5b55d13f66d061d49a6f 100644 (file)
@@ -2357,7 +2357,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));