Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 119758
b: refs/heads/master
c: 17b24b3
h: refs/heads/master
v: v3
  • Loading branch information
Chas Williams authored and David S. Miller committed Dec 4, 2008
1 parent fdcc488 commit 3e58ca2
Show file tree
Hide file tree
Showing 2 changed files with 6 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: 2cc002c4bbce4d918ab94b494d61c6991c907d5e
refs/heads/master: 17b24b3c97498935a2ef9777370b1151dfed3f6f
6 changes: 5 additions & 1 deletion trunk/net/atm/svc.c
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,10 @@ static int svc_listen(struct socket *sock,int backlog)
error = -EINVAL;
goto out;
}
vcc_insert_socket(sk);
if (test_bit(ATM_VF_LISTEN, &vcc->flags)) {
error = -EADDRINUSE;
goto out;
}
set_bit(ATM_VF_WAITING, &vcc->flags);
prepare_to_wait(sk->sk_sleep, &wait, TASK_UNINTERRUPTIBLE);
sigd_enq(vcc,as_listen,NULL,NULL,&vcc->local);
Expand All @@ -307,6 +310,7 @@ static int svc_listen(struct socket *sock,int backlog)
goto out;
}
set_bit(ATM_VF_LISTEN,&vcc->flags);
vcc_insert_socket(sk);
sk->sk_max_ack_backlog = backlog > 0 ? backlog : ATM_BACKLOG_DEFAULT;
error = -sk->sk_err;
out:
Expand Down

0 comments on commit 3e58ca2

Please sign in to comment.