]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
fib_rules: fix error return code
authorWei Yongjun <weiyongjun1@huawei.com>
Wed, 26 Apr 2017 14:03:50 +0000 (14:03 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 27 Apr 2017 20:35:57 +0000 (16:35 -0400)
commitadeb45cbb5057731ce9c47aad93756135d7947bf
tree4bdebd857bdd4491ebd9b83da6a68cec8fe1f1e4
parent99f906e9ad7b6e79ffeda30f45906a8448b9d6a2
fib_rules: fix error return code

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>
net/core/fib_rules.c