Revert "fib_rules: fix error in backport of e9919a24d302 ("fib_rules: return 0...")"
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 9 Jun 2019 07:55:08 +0000 (09:55 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 11 Jun 2019 10:21:47 +0000 (12:21 +0200)
This reverts commit 691306ebd18f945e44b4552a4bfcca3475e5d957 as the
patch that this "fixes" is about to be reverted...

Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/core/fib_rules.c

index b08c69730a72a7892c556aa53663a033bc5a402e..5229d1cf51fd3a1948e5d9bc8b7ba83b6778283e 100644 (file)
@@ -564,7 +564,6 @@ 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;