diff --git a/net/core/fib_rules.c b/net/core/fib_rules.c index 25c25e85ca06..268e32005273 100644 --- a/net/core/fib_rules.c +++ b/net/core/fib_rules.c @@ -487,6 +487,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;