Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 224514
b: refs/heads/master
c: 3f0a069
h: refs/heads/master
v: v3
  • Loading branch information
andrew hendry authored and David S. Miller committed Nov 28, 2010
1 parent 391f9f9 commit 70de4b7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 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: 74a7e440807d34e586e9feb8e14851b5c80fbfe5
refs/heads/master: 3f0a069a1d5c0ccace735e3a62c1bcef53e4c354
11 changes: 6 additions & 5 deletions trunk/net/x25/af_x25.c
Original file line number Diff line number Diff line change
Expand Up @@ -1562,19 +1562,20 @@ static int x25_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
case SIOCX25SCUDMATCHLEN: {
struct x25_subaddr sub_addr;
rc = -EINVAL;
lock_kernel();
lock_sock(sk);
if(sk->sk_state != TCP_CLOSE)
break;
goto out_cud_release;
rc = -EFAULT;
if (copy_from_user(&sub_addr, argp,
sizeof(sub_addr)))
break;
goto out_cud_release;
rc = -EINVAL;
if(sub_addr.cudmatchlength > X25_MAX_CUD_LEN)
break;
goto out_cud_release;
x25->cudmatchlength = sub_addr.cudmatchlength;
unlock_kernel();
rc = 0;
out_cud_release:
release_sock(sk);
break;
}

Expand Down

0 comments on commit 70de4b7

Please sign in to comment.