projects
/
platform
/
kernel
/
linux-exynos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
58d35f8
)
Bluetooth: Fix wrong comparison in listen()
author
Gustavo F. Padovan
<padovan@profusion.mobi>
Tue, 5 Apr 2011 18:24:40 +0000
(15:24 -0300)
committer
Gustavo F. Padovan
<padovan@profusion.mobi>
Wed, 13 Apr 2011 15:20:00 +0000
(12:20 -0300)
We should check for the pi->scid there.
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
b2bfa1e
..
473e597
100644
(file)
--- a/
net/bluetooth/l2cap_sock.c
+++ b/
net/bluetooth/l2cap_sock.c
@@
-269,7
+269,7
@@
static int l2cap_sock_listen(struct socket *sock, int backlog)
goto done;
}
- if (!l2cap_pi(sk)->psm && !l2cap_pi(sk)->
d
cid) {
+ if (!l2cap_pi(sk)->psm && !l2cap_pi(sk)->
s
cid) {
bdaddr_t *src = &bt_sk(sk)->src;
u16 psm;