Commit cd69a03a authored by Gustavo F. Padovan's avatar Gustavo F. Padovan

Bluetooth: Fix wrong comparison in listen()

We should check for the pi->scid there.
Signed-off-by: default avatarGustavo F. Padovan <padovan@profusion.mobi>
parent 58d35f87
...@@ -269,7 +269,7 @@ static int l2cap_sock_listen(struct socket *sock, int backlog) ...@@ -269,7 +269,7 @@ static int l2cap_sock_listen(struct socket *sock, int backlog)
goto done; goto done;
} }
if (!l2cap_pi(sk)->psm && !l2cap_pi(sk)->dcid) { if (!l2cap_pi(sk)->psm && !l2cap_pi(sk)->scid) {
bdaddr_t *src = &bt_sk(sk)->src; bdaddr_t *src = &bt_sk(sk)->src;
u16 psm; u16 psm;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment