projects
/
deliverable
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
27fcc36
)
Bluetooth: Fix clearing of dev_class when powering down
author
Johan Hedberg
<johan.hedberg@intel.com>
Wed, 22 Feb 2012 20:01:41 +0000
(22:01 +0200)
committer
Johan Hedberg
<johan.hedberg@intel.com>
Thu, 23 Feb 2012 11:07:00 +0000
(13:07 +0200)
We should assume a value of 0 for the device class when powered off.
The appropriate place to do this is in hci_dev_do_close().
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/hci_core.c
patch
|
blob
|
blame
|
history
diff --git
a/net/bluetooth/hci_core.c
b/net/bluetooth/hci_core.c
index 2d75ffb42f7d800e128e0f9bed733433da13bbc4..2ab78bfc108ee91b66e03e7a2dd7550671bb2af6 100644
(file)
--- a/
net/bluetooth/hci_core.c
+++ b/
net/bluetooth/hci_core.c
@@
-795,6
+795,7
@@
static int hci_dev_do_close(struct hci_dev *hdev)
hdev->flags = 0;
memset(hdev->eir, 0, sizeof(hdev->eir));
+ memset(hdev->dev_class, 0, sizeof(hdev->dev_class));
hci_req_unlock(hdev);
This page took
0.025666 seconds
and
5
git commands to generate.