summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorLoic Poulain <loic.poulain@intel.com>2015-06-09 09:46:30 (GMT)
committerMarcel Holtmann <marcel@holtmann.org>2015-06-09 09:47:25 (GMT)
commit867146a0d242bb9aecc267aa33e0804501550368 (patch)
tree09f33bce916867734b9e9577cfdaf047293861f9 /net
parente5719b661a978f7d23042c140979351951f970bb (diff)
downloadlinux-867146a0d242bb9aecc267aa33e0804501550368.tar.xz
Bluetooth: Don't call shutdown when leaving user channel
Don't interfere with the user channel exclusive access. Signed-off-by: Loic Poulain <loic.poulain@intel.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net')
-rw-r--r--net/bluetooth/hci_core.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c
index f6c9909..573711c 100644
--- a/net/bluetooth/hci_core.c
+++ b/net/bluetooth/hci_core.c
@@ -1553,6 +1553,7 @@ static int hci_dev_do_close(struct hci_dev *hdev)
BT_DBG("%s %p", hdev->name, hdev);
if (!hci_dev_test_flag(hdev, HCI_UNREGISTER) &&
+ !hci_dev_test_flag(hdev, HCI_USER_CHANNEL) &&
test_bit(HCI_UP, &hdev->flags)) {
/* Execute vendor specific shutdown routine */
if (hdev->shutdown)