Commit 3b9239a8 authored by Mat Martineau's avatar Mat Martineau Committed by Linux Build Service Account
Browse files

Bluetooth: Lock sockets when closing HCI device



When a Bluetooth device is powered down while RFCOMM connections are
open, there are race conditions where RFCOMM tries to use an HCI
connection after the data structures have been deleted.  Since the
powerdown procedure runs in process context, it is possible to lock
sockets before accessing them to close connections.  This change adds
that locking, which will serialize socket access between processors
during powerdown.

Change-Id: I587720799b35d9ee6e66340bdeda8a2b9e2ea7b5
CRs-fixed: 336893
Signed-off-by: default avatarMat Martineau <mathewm@codeaurora.org>
parent 2e18c885
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment