X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=net%2Fnetfilter%2Fxt_osf.c;h=df8801e02a322fec2fac377d00d7a2bb8d389688;hb=e0700ce70921fbe3d1913968c663beb9df2b01a9;hp=0778855ea5e75dff20f77f58a23c1f751c5ae45d;hpb=159c6fc0bbe796fe60962c6ce8735a114340caed;p=firefly-linux-kernel-4.4.55.git diff --git a/net/netfilter/xt_osf.c b/net/netfilter/xt_osf.c index 0778855ea5e7..df8801e02a32 100644 --- a/net/netfilter/xt_osf.c +++ b/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;