Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 352079
b: refs/heads/master
c: cbb95e0
h: refs/heads/master
i:
  352077: 9ec17e9
  352075: f9a3a65
  352071: 6dc0219
  352063: b5052ed
v: v3
  • Loading branch information
Tom Parkin authored and David S. Miller committed Feb 5, 2013
1 parent 89519be commit 4adb0f5
Show file tree
Hide file tree
Showing 2 changed files with 10 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: b6fdfdfab0c57d4a62359277c09258bc2f5a1550
refs/heads/master: cbb95e0ca92869cc94a1c5e5ac58395afbbda26e
11 changes: 9 additions & 2 deletions trunk/net/l2tp/l2tp_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1593,11 +1593,18 @@ int l2tp_tunnel_create(struct net *net, int fd, int version, u32 tunnel_id, u32
if (err < 0)
goto err;
} else {
err = -EBADF;
sock = sockfd_lookup(fd, &err);
if (!sock) {
pr_err("tunl %hu: sockfd_lookup(fd=%d) returned %d\n",
pr_err("tunl %u: sockfd_lookup(fd=%d) returned %d\n",
tunnel_id, fd, err);
err = -EBADF;
goto err;
}

/* Reject namespace mismatches */
if (!net_eq(sock_net(sock->sk), net)) {
pr_err("tunl %u: netns mismatch\n", tunnel_id);
err = -EINVAL;
goto err;
}
}
Expand Down

0 comments on commit 4adb0f5

Please sign in to comment.