projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
941247f
)
Bluetooth: Add clarifying comment to bt_sock_wait_state()
author
Johan Hedberg
<
[email protected]
>
Wed, 25 Sep 2013 10:26:04 +0000
(13:26 +0300)
committer
Gustavo Padovan
<
[email protected]
>
Wed, 25 Sep 2013 17:30:10 +0000
(14:30 -0300)
The bt_sock_wait_state requires the sk lock to be held (through
lock_sock) so document it clearly in the code.
Signed-off-by: Johan Hedberg <
[email protected]
>
Acked-by: Marcel Holtmann <
[email protected]
>
Signed-off-by: Gustavo Padovan <
[email protected]
>
net/bluetooth/af_bluetooth.c
patch
|
blob
|
history
diff --git
a/net/bluetooth/af_bluetooth.c
b/net/bluetooth/af_bluetooth.c
index c600631cd19e244c5ca73811bea163d31eaca72b..e6e1278dca89750815c9562f92c77f58518225e5 100644
(file)
--- a/
net/bluetooth/af_bluetooth.c
+++ b/
net/bluetooth/af_bluetooth.c
@@
-490,6
+490,7
@@
int bt_sock_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
}
EXPORT_SYMBOL(bt_sock_ioctl);
+/* This function expects the sk lock to be held when called */
int bt_sock_wait_state(struct sock *sk, int state, unsigned long timeo)
{
DECLARE_WAITQUEUE(wait, current);