Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 306891
b: refs/heads/master
c: 7d5d775
h: refs/heads/master
i:
  306889: fca4fa4
  306887: c6cec59
v: v3
  • Loading branch information
Marcel Holtmann authored and Gustavo Padovan committed May 9, 2012
1 parent 5dbe1b9 commit 03b7373
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6b3af7334bd3c403647606adfb04f6e6bcf1597e
refs/heads/master: 7d5d775a55554183448b591a86b1d172ae993b94
7 changes: 6 additions & 1 deletion trunk/net/bluetooth/sco.c
Original file line number Diff line number Diff line change
Expand Up @@ -539,11 +539,16 @@ static int sco_sock_listen(struct socket *sock, int backlog)

lock_sock(sk);

if (sk->sk_state != BT_BOUND || sock->type != SOCK_SEQPACKET) {
if (sk->sk_state != BT_BOUND) {
err = -EBADFD;
goto done;
}

if (sk->sk_type != SOCK_SEQPACKET) {
err = -EINVAL;
goto done;
}

sk->sk_max_ack_backlog = backlog;
sk->sk_ack_backlog = 0;
sk->sk_state = BT_LISTEN;
Expand Down

0 comments on commit 03b7373

Please sign in to comment.