diff options
author | Dean Jenkins <Dean_Jenkins@mentor.com> | 2015-06-23 18:59:39 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2015-07-23 17:10:51 +0200 |
commit | e432c72c464d2deb6c66d1e2a5f548dc1f0ef4dc (patch) | |
tree | 1206dfbdbb74bf9b5ffa8bf9999b824761cea681 /drivers/net/ieee802154/mrf24j40.c | |
parent | Bluetooth: __l2cap_wait_ack() use msecs_to_jiffies() (diff) | |
download | linux-e432c72c464d2deb6c66d1e2a5f548dc1f0ef4dc.tar.xz linux-e432c72c464d2deb6c66d1e2a5f548dc1f0ef4dc.zip |
Bluetooth: __l2cap_wait_ack() add defensive timeout
Add a timeout to prevent the do while loop running in an
infinite loop. This ensures that the channel will be
instructed to close within 10 seconds so prevents
l2cap_sock_shutdown() getting stuck forever.
Returns -ENOLINK when the timeout is reached. The channel
will be subequently closed and not all data will be ACK'ed.
Signed-off-by: Dean Jenkins <Dean_Jenkins@mentor.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'drivers/net/ieee802154/mrf24j40.c')
0 files changed, 0 insertions, 0 deletions