Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 195172
b: refs/heads/master
c: 935e2a2
h: refs/heads/master
v: v3
  • Loading branch information
andrew hendry authored and David S. Miller committed May 18, 2010
1 parent 5bf13cb commit d043b29
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 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: 37cda78741ecdbf45dd9b64e4c99dbdb11b47b46
refs/heads/master: 935e2a26b85003c0bd52b6c92712c2f77a5f9d33
4 changes: 0 additions & 4 deletions trunk/net/x25/af_x25.c
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,6 @@ static int x25_setsockopt(struct socket *sock, int level, int optname,
struct sock *sk = sock->sk;
int rc = -ENOPROTOOPT;

lock_kernel();
if (level != SOL_X25 || optname != X25_QBITINCL)
goto out;

Expand All @@ -471,7 +470,6 @@ static int x25_setsockopt(struct socket *sock, int level, int optname,
clear_bit(X25_Q_BIT_FLAG, &x25_sk(sk)->flags);
rc = 0;
out:
unlock_kernel();
return rc;
}

Expand All @@ -481,7 +479,6 @@ static int x25_getsockopt(struct socket *sock, int level, int optname,
struct sock *sk = sock->sk;
int val, len, rc = -ENOPROTOOPT;

lock_kernel();
if (level != SOL_X25 || optname != X25_QBITINCL)
goto out;

Expand All @@ -502,7 +499,6 @@ static int x25_getsockopt(struct socket *sock, int level, int optname,
val = test_bit(X25_Q_BIT_FLAG, &x25_sk(sk)->flags);
rc = copy_to_user(optval, &val, len) ? -EFAULT : 0;
out:
unlock_kernel();
return rc;
}

Expand Down

0 comments on commit d043b29

Please sign in to comment.