UPSTREAM: fib_rules: fix error return code

commit adeb45cbb5057731ce9c47aad93756135d7947bf upstream.

Fix to return error code -EINVAL from the error handling
case instead of 0, as done elsewhere in this function.

Fixes: 622ec2c9d524 ("net: core: add UID to flows, rules, and routes")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

Change-Id: I969dffb6ae4daeb039fc1a479165d8ff28636eec
Fixes: ("UPSTREAM: net: core: add UID to flows, rules, and routes")
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
1 file changed