]> git.hungrycats.org Git - linux/commit
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 13:11:02 +0000 (14:11 +0100)
commit0385cedcdfc205910ece9200bdd7fa30535f4349
tree746cfb3f0498deaaf833cca1f18b8a614f6f4aec
parenta0c9b824b2f38ae9c8a455f8a9c8f6021f7cb905
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