]> git.baikalelectronics.ru Git - 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)
commitba7e0d63fb53b036706347b395d2eae41923e6eb
tree4bdebd857bdd4491ebd9b83da6a68cec8fe1f1e4
parentb02630777a53a6d327c22b72790b77905d3d4271
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: 69eb6bffc817 ("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