aboutsummaryrefslogtreecommitdiffstats
path: root/net/lapb/lapb_in.c
diff options
context:
space:
mode:
authorDean Jenkins <[email protected]>2015-06-23 16:59:39 +0000
committerMarcel Holtmann <[email protected]>2015-07-23 15:10:51 +0000
commite432c72c464d2deb6c66d1e2a5f548dc1f0ef4dc (patch)
tree1206dfbdbb74bf9b5ffa8bf9999b824761cea681 /net/lapb/lapb_in.c
parentBluetooth: __l2cap_wait_ack() use msecs_to_jiffies() (diff)
downloadkernel-e432c72c464d2deb6c66d1e2a5f548dc1f0ef4dc.tar.gz
kernel-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 <[email protected]> Signed-off-by: Marcel Holtmann <[email protected]>
Diffstat (limited to 'net/lapb/lapb_in.c')
0 files changed, 0 insertions, 0 deletions