Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 214519
b: refs/heads/master
c: 25aa4ef
h: refs/heads/master
i:
  214517: 6eded6e
  214515: 0a1a938
  214511: 25bf6da
v: v3
  • Loading branch information
andrew hendry authored and David S. Miller committed Sep 15, 2010
1 parent e62bc60 commit b469dde
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: 55b1804c678e679e1018671bd40b583eab124689
refs/heads/master: 25aa4efe4feb4150fe613169795df505c5018f2b
4 changes: 2 additions & 2 deletions trunk/net/x25/af_x25.c
Original file line number Diff line number Diff line change
Expand Up @@ -507,14 +507,14 @@ static int x25_listen(struct socket *sock, int backlog)
struct sock *sk = sock->sk;
int rc = -EOPNOTSUPP;

lock_kernel();
lock_sock(sk);
if (sk->sk_state != TCP_LISTEN) {
memset(&x25_sk(sk)->dest_addr, 0, X25_ADDR_LEN);
sk->sk_max_ack_backlog = backlog;
sk->sk_state = TCP_LISTEN;
rc = 0;
}
unlock_kernel();
release_sock(sk);

return rc;
}
Expand Down

0 comments on commit b469dde

Please sign in to comment.