projects
/
platform
/
kernel
/
linux-stable.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2cc6fb0
)
Bluetooth: Clear non-persistent flags when closing HCI device
author
Johan Hedberg
<johan.hedberg@intel.com>
Fri, 15 Mar 2013 22:06:58 +0000
(17:06 -0500)
committer
Gustavo Padovan
<gustavo.padovan@collabora.co.uk>
Mon, 18 Mar 2013 17:02:02 +0000
(14:02 -0300)
When hci_dev_do_close() is called we should make sure to clear all
non-persistent flags in hci->dev_flags.
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
net/bluetooth/hci_core.c
patch
|
blob
|
history
diff --git
a/net/bluetooth/hci_core.c
b/net/bluetooth/hci_core.c
index 02070dcdfbbb6bfbdf981931352eba089fb1d962..059bbae534d169aac27327c5dfd04ea7e7756d9f 100644
(file)
--- a/
net/bluetooth/hci_core.c
+++ b/
net/bluetooth/hci_core.c
@@
-1139,6
+1139,7
@@
static int hci_dev_do_close(struct hci_dev *hdev)
/* Clear flags */
hdev->flags = 0;
+ hdev->dev_flags &= ~HCI_PERSISTENT_MASK;
/* Controller radio is available but is currently powered down */
hdev->amp_status = 0;