Linux bluetooth development
 help / color / mirror / Atom feed
* [PATCH 1/3] Bluetooth: Fix missing hci_dev_lock_bh in user_confirm_reply
@ 2011-03-15 18:54 johan.hedberg
  2011-03-15 18:54 ` [PATCH 2/3] Bluetooth: mgmt: Add local name information to read_info reply johan.hedberg
  2011-03-15 18:54 ` [PATCH 3/3] Bluetooth: mgmt: Add support for setting the local name johan.hedberg
  0 siblings, 2 replies; 5+ messages in thread
From: johan.hedberg @ 2011-03-15 18:54 UTC (permalink / raw)
  To: linux-bluetooth

From: Johan Hedberg <johan.hedberg@nokia.com>

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>
---
 net/bluetooth/mgmt.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c
index 0054c74..4476d8e 100644
--- 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;
-- 
1.7.4.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-03-16 10:09 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-15 18:54 [PATCH 1/3] Bluetooth: Fix missing hci_dev_lock_bh in user_confirm_reply johan.hedberg
2011-03-15 18:54 ` [PATCH 2/3] Bluetooth: mgmt: Add local name information to read_info reply johan.hedberg
2011-03-15 18:54 ` [PATCH 3/3] Bluetooth: mgmt: Add support for setting the local name johan.hedberg
2011-03-15 19:57   ` Anderson Lizardo
2011-03-16 10:09   ` Szymon Janc

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox