Message ID | 1284507110.1742.56.camel@jaunty |
---|---|
State | Accepted, archived |
Delegated to: | David Miller |
Headers | show |
diff --git a/net/x25/af_x25.c b/net/x25/af_x25.c index ab959d0..4ebde0d 100644 --- a/net/x25/af_x25.c +++ b/net/x25/af_x25.c @@ -867,7 +867,6 @@ static int x25_accept(struct socket *sock, struct socket *newsock, int flags) struct sk_buff *skb; int rc = -EINVAL; - lock_kernel(); if (!sk || sk->sk_state != TCP_LISTEN) goto out; @@ -895,7 +894,6 @@ static int x25_accept(struct socket *sock, struct socket *newsock, int flags) out2: release_sock(sk); out: - unlock_kernel(); return rc; }
Accept already has socket locking. Signed-off-by: Andrew Hendry <andrew.hendry@gmail.com> --- net/x25/af_x25.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-)