]> git.ipfire.org Git - thirdparty/kernel/stable.git/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 12:31:30 +0000 (13:31 +0100)
commita88e88e824e16fe34d2b98539019d3ffd0b31310
tree1592895d2847321810af661e0cf193cd27d1f739
parente590a0671fe62e6eef7df7fbe85271d7d89b68a3
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