USB: serial: fix infinite wait_until_sent timeout
authorJohan Hovold <johan@kernel.org>
Wed, 4 Mar 2015 09:39:05 +0000 (10:39 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Mar 2015 12:22:31 +0000 (13:22 +0100)
commitda90e1a218120d6a04cda86b09899de98132ff04
treea661f3cb6ab2531a82dbca98dcd1303a4b8bd349
parent7c5f4dde19242e34f04e04087df40f35a15754be
USB: serial: fix infinite wait_until_sent timeout

commit f528bf4f57e43d1af4b2a5c97f09e43e0338c105 upstream.

Make sure to handle an infinite timeout (0).

Note that wait_until_sent is currently never called with a 0-timeout
argument due to a bug in tty_wait_until_sent.

Fixes: dcf010503966 ("USB: serial: add generic wait_until_sent
implementation")
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/serial/generic.c