diff --git a/net/core/fib_rules.c b/net/core/fib_rules.c index 5229d1cf51fd..b08c69730a72 100644 --- a/net/core/fib_rules.c +++ b/net/core/fib_rules.c @@ -564,6 +564,7 @@ int fib_nl_newrule(struct sk_buff *skb, struct nlmsghdr *nlh, } if (rule_exists(ops, frh, tb, rule)) { + err = 0; if (nlh->nlmsg_flags & NLM_F_EXCL) err = -EEXIST; goto errout_free;