net: avoid one splat in fib_nl_delrule()
[platform/kernel/linux-rpi.git] / net / core / fib_rules.c
index c4ecd9f..a0093e1 100644 (file)
@@ -517,7 +517,7 @@ int fib_nl_newrule(struct sk_buff *skb, struct nlmsghdr *nlh,
                last = r;
        }
 
-       fib_rule_get(rule);
+       refcount_set(&rule->refcnt, 1);
 
        if (last)
                list_add_rcu(&rule->list, &last->list);