projects
/
kernel
/
kernel-mfld-blackbay.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ad092f
)
Bluetooth: Fixed wrong L2CAP Sock timer value
author
Chen Ganir
<chen.ganir@ti.com>
Thu, 28 Jul 2011 12:42:09 +0000
(15:42 +0300)
committer
mgross
<mark.gross@intel.com>
Wed, 9 Nov 2011 20:22:36 +0000
(12:22 -0800)
L2CAP connection timeout needs to be assigned as miliseconds
and not as jiffies.
Signed-off-by: Chen Ganir <chen.ganir@ti.com>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
net/bluetooth/l2cap_sock.c
patch
|
blob
|
history
diff --git
a/net/bluetooth/l2cap_sock.c
b/net/bluetooth/l2cap_sock.c
index
7d713b1
..
61f1f62
100644
(file)
--- a/
net/bluetooth/l2cap_sock.c
+++ b/
net/bluetooth/l2cap_sock.c
@@
-993,7
+993,7
@@
static struct sock *l2cap_sock_alloc(struct net *net, struct socket *sock, int p
INIT_LIST_HEAD(&bt_sk(sk)->accept_q);
sk->sk_destruct = l2cap_sock_destruct;
- sk->sk_sndtimeo =
msecs_to_jiffies(L2CAP_CONN_TIMEOUT)
;
+ sk->sk_sndtimeo =
L2CAP_CONN_TIMEOUT
;
sock_reset_flag(sk, SOCK_ZAPPED);