X-Git-Url: http://ftp.safe.ca/?a=blobdiff_plain;f=net%2Fipv4%2Ffib_rules.c;h=1fb56876be54ab77f035abbd0afd51618edb2da8;hb=a6604471db5e7a33474a7f16c64d6b118fae3e74;hp=19274d01afa4a36c3777b5ff34816fa63783734a;hpb=64c2d5382954ccf6054424653f4c7f4f04c1ff21;p=safe%2Fjmp%2Flinux-2.6 diff --git a/net/ipv4/fib_rules.c b/net/ipv4/fib_rules.c index 19274d0..1fb5687 100644 --- a/net/ipv4/fib_rules.c +++ b/net/ipv4/fib_rules.c @@ -137,7 +137,7 @@ static int fib4_rule_configure(struct fib_rule *rule, struct sk_buff *skb, struct nlmsghdr *nlh, struct fib_rule_hdr *frh, struct nlattr **tb) { - struct net *net = skb->sk->sk_net; + struct net *net = sock_net(skb->sk); int err = -EINVAL; struct fib4_rule *rule4 = (struct fib4_rule *) rule;