mirror of https://gitee.com/openkylin/linux.git
Bluetooth: Fix wrong comparison in listen()
We should check for the pi->scid there. Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
This commit is contained in:
parent
58d35f87ef
commit
cd69a03af1
|
@ -269,7 +269,7 @@ static int l2cap_sock_listen(struct socket *sock, int backlog)
|
|||
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;
|
||||
u16 psm;
|
||||
|
||||
|
|
Loading…
Reference in New Issue