diff options
-rw-r--r-- | net/bluetooth/l2cap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/l2cap.c b/net/bluetooth/l2cap.c index 670ff95ca64b..b82cbdd1fcb1 100644 --- a/net/bluetooth/l2cap.c +++ b/net/bluetooth/l2cap.c | |||
@@ -748,7 +748,7 @@ static int l2cap_sock_listen(struct socket *sock, int backlog) | |||
748 | write_lock_bh(&l2cap_sk_list.lock); | 748 | write_lock_bh(&l2cap_sk_list.lock); |
749 | 749 | ||
750 | for (psm = 0x1001; psm < 0x1100; psm += 2) | 750 | for (psm = 0x1001; psm < 0x1100; psm += 2) |
751 | if (!__l2cap_get_sock_by_addr(psm, src)) { | 751 | if (!__l2cap_get_sock_by_addr(htobs(psm), src)) { |
752 | l2cap_pi(sk)->psm = htobs(psm); | 752 | l2cap_pi(sk)->psm = htobs(psm); |
753 | l2cap_pi(sk)->sport = htobs(psm); | 753 | l2cap_pi(sk)->sport = htobs(psm); |
754 | err = 0; | 754 | err = 0; |