Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 691306eb authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman
Browse files

fib_rules: fix error in backport of e9919a24d302 ("fib_rules: return 0...")



When commit e9919a24d302 ("fib_rules: return 0 directly if an exactly
same rule exists when NLM_F_EXCL not supplied") was backported to 4.9.y,
it changed the logic a bit as err should have been reset before exiting
the test, like it happens in the original logic.

If this is not set, errors happen :(

Reported-by: default avatarNathan Chancellor <natechancellor@gmail.com>
Reported-by: default avatarDavid Ahern <dsahern@gmail.com>
Reported-by: default avatarFlorian Westphal <fw@strlen.de>
Cc: Hangbin Liu <liuhangbin@gmail.com>
Cc: David S. Miller <davem@davemloft.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 654a509d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment