Greg Kroah-Hartman 691306ebd1 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: Nathan Chancellor <natechancellor@gmail.com>
Reported-by: David Ahern <dsahern@gmail.com>
Reported-by: Florian Westphal <fw@strlen.de>
Cc: Hangbin Liu <liuhangbin@gmail.com>
Cc: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-05-21 18:50:20 +02:00
..
2019-02-23 09:06:44 +01:00
2019-05-08 07:20:45 +02:00
2018-12-01 09:42:51 +01:00
2019-02-06 17:31:32 +01:00
2019-03-23 14:35:16 +01:00
2019-05-02 09:40:33 +02:00
2019-05-08 07:20:44 +02:00
2019-03-19 13:13:23 +01:00
2019-01-09 17:14:46 +01:00