]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: irda: fix wait_until_sent poll timeout
authorJohan Hovold <johan@kernel.org>
Wed, 4 Mar 2015 09:39:03 +0000 (10:39 +0100)
committerZefan Li <lizefan@huawei.com>
Fri, 19 Jun 2015 03:40:22 +0000 (11:40 +0800)
commit974de0a75be69498648e831cb42c61cd9098e4de
treef071c226e854c7f4b7ca19a4b5e4f341e82f0191
parent7ebae41be6d18aa63ea086f3522243d090a8fc8d
net: irda: fix wait_until_sent poll timeout

commit 2c3fbe3cf28fbd7001545a92a83b4f8acfd9fa36 upstream.

In case an infinite timeout (0) is requested, the irda wait_until_sent
implementation would use a zero poll timeout rather than the default
200ms.

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

Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Zefan Li <lizefan@huawei.com>
net/irda/ircomm/ircomm_tty.c