Skip to content

Commit

Permalink
X.25 remove bkl in connect
Browse files Browse the repository at this point in the history
Connect already has socket locking.

Signed-off-by: Andrew Hendry <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
AndrewHendry authored and davem330 committed Sep 15, 2010
1 parent 141646c commit 21a4591
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions net/x25/af_x25.c
Original file line number Diff line number Diff line change
Expand Up @@ -751,7 +751,6 @@ static int x25_connect(struct socket *sock, struct sockaddr *uaddr,
struct x25_route *rt;
int rc = 0;

lock_kernel();
lock_sock(sk);
if (sk->sk_state == TCP_ESTABLISHED && sock->state == SS_CONNECTING) {
sock->state = SS_CONNECTED;
Expand Down Expand Up @@ -829,7 +828,6 @@ static int x25_connect(struct socket *sock, struct sockaddr *uaddr,
x25_route_put(rt);
out:
release_sock(sk);
unlock_kernel();
return rc;
}

Expand Down

0 comments on commit 21a4591

Please sign in to comment.