summaryrefslogtreecommitdiff
path: root/drivers/md/dm-bufio.c
diff options
context:
space:
mode:
authorDean Jenkins <Dean_Jenkins@mentor.com>2015-10-14 13:18:47 +0300
committerMarcel Holtmann <marcel@holtmann.org>2015-10-21 01:49:26 +0300
commit9f7378a9d6ced1784e08d3e21a9ddb769523baf2 (patch)
tree500bf645b5dd1c47fc829697ec58a8e40f57a8c0 /drivers/md/dm-bufio.c
parent04ba72e6b24f1e0e2221fcd73f08782870473fa1 (diff)
downloadlinux-9f7378a9d6ced1784e08d3e21a9ddb769523baf2.tar.xz
Bluetooth: l2cap_disconnection_req priority over shutdown
There is a L2CAP protocol race between the local peer and the remote peer demanding disconnection of the L2CAP link. When L2CAP ERTM is used, l2cap_sock_shutdown() can be called from userland to disconnect L2CAP. However, there can be a delay introduced by waiting for ACKs. During this waiting period, the remote peer may have sent a Disconnection Request. Therefore, recheck the shutdown status of the socket after waiting for ACKs because there is no need to do further processing if the connection has gone. Signed-off-by: Dean Jenkins <Dean_Jenkins@mentor.com> Signed-off-by: Harish Jenny K N <harish_kandiga@mentor.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'drivers/md/dm-bufio.c')
0 files changed, 0 insertions, 0 deletions