summaryrefslogtreecommitdiffstats
path: root/kernel/net/netfilter/xt_osf.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/net/netfilter/xt_osf.c')
-rw-r--r--kernel/net/netfilter/xt_osf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/net/netfilter/xt_osf.c b/kernel/net/netfilter/xt_osf.c
index 0778855ea..df8801e02 100644
--- a/kernel/net/netfilter/xt_osf.c
+++ b/kernel/net/netfilter/xt_osf.c
@@ -200,7 +200,7 @@ xt_osf_match_packet(const struct sk_buff *skb, struct xt_action_param *p)
unsigned char opts[MAX_IPOPTLEN];
const struct xt_osf_finger *kf;
const struct xt_osf_user_finger *f;
- struct net *net = dev_net(p->in ? p->in : p->out);
+ struct net *net = p->net;
if (!info)
return false;