Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 112104
b: refs/heads/master
c: 4de6f16
h: refs/heads/master
v: v3
  • Loading branch information
Alexey Dobriyan authored and Patrick McHardy committed Oct 8, 2008
1 parent 3188c22 commit 4dd786b
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 12 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: cfd6e3d74751b62b6d0844e24c911776e40a0135
refs/heads/master: 4de6f16b9ec2422fa7ef9c22f7b1c8d5a55499b4
8 changes: 0 additions & 8 deletions trunk/net/netfilter/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -165,14 +165,6 @@ int nf_hook_slow(u_int8_t pf, unsigned int hook, struct sk_buff *skb,
unsigned int verdict;
int ret = 0;

#ifdef CONFIG_NET_NS
struct net *net;

net = indev == NULL ? dev_net(outdev) : dev_net(indev);
if (net != &init_net)
return 1;
#endif

/* We may already have this, but read-locks nest anyway */
rcu_read_lock();

Expand Down
3 changes: 0 additions & 3 deletions trunk/net/netfilter/nf_sockopt.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,6 @@ static struct nf_sockopt_ops *nf_sockopt_find(struct sock *sk, u_int8_t pf,
{
struct nf_sockopt_ops *ops;

if (!net_eq(sock_net(sk), &init_net))
return ERR_PTR(-ENOPROTOOPT);

if (mutex_lock_interruptible(&nf_sockopt_mutex) != 0)
return ERR_PTR(-EINTR);

Expand Down

0 comments on commit 4dd786b

Please sign in to comment.