projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8693ac9
)
Bluetooth: Fix missing hci_dev_lock_bh in user_confirm_reply
author
Johan Hedberg
<johan.hedberg@nokia.com>
Wed, 16 Mar 2011 12:29:34 +0000
(14:29 +0200)
committer
Gustavo F. Padovan
<padovan@profusion.mobi>
Thu, 31 Mar 2011 17:25:25 +0000
(14:25 -0300)
The code was correctly calling _unlock at the end of the function but
there was no actual _lock call anywhere.
Signed-off-by: Johan Hedberg <johan.hedberg@nokia.com>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
net/bluetooth/mgmt.c
patch
|
blob
|
blame
|
history
diff --git
a/net/bluetooth/mgmt.c
b/net/bluetooth/mgmt.c
index 0054c74e27b7fcd4971477408721b003e773f37a..4476d8e3c0f2e5942830e34b6772ed5609ff3afe 100644
(file)
--- a/
net/bluetooth/mgmt.c
+++ b/
net/bluetooth/mgmt.c
@@
-1230,6
+1230,8
@@
static int user_confirm_reply(struct sock *sk, u16 index, unsigned char *data,
if (!hdev)
return cmd_status(sk, index, mgmt_op, ENODEV);
+ hci_dev_lock_bh(hdev);
+
if (!test_bit(HCI_UP, &hdev->flags)) {
err = cmd_status(sk, index, mgmt_op, ENETDOWN);
goto failed;