projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
93b3cff
)
net: fib_rules: fix error code for unsupported families
author
Patrick McHardy
<kaber@trash.net>
Wed, 2 Jul 2008 02:59:37 +0000
(19:59 -0700)
committer
David S. Miller
<davem@davemloft.net>
Wed, 2 Jul 2008 02:59:37 +0000
(19:59 -0700)
The errno code returned must be negative.
Fixes "RTNETLINK answers: Unknown error
18446744073709551519
".
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/fib_rules.c
patch
|
blob
|
blame
|
history
diff --git
a/net/core/fib_rules.c
b/net/core/fib_rules.c
index e3e9ab0f74e33caf9e0df3a8d0829359f86eefe7..277a2302eb3abb666574a5b3b7dc2714f45ef7c4 100644
(file)
--- a/
net/core/fib_rules.c
+++ b/
net/core/fib_rules.c
@@
-226,7
+226,7
@@
static int fib_nl_newrule(struct sk_buff *skb, struct nlmsghdr* nlh, void *arg)
ops = lookup_rules_ops(net, frh->family);
if (ops == NULL) {
- err = EAFNOSUPPORT;
+ err =
-
EAFNOSUPPORT;
goto errout;
}
@@
-365,7
+365,7
@@
static int fib_nl_delrule(struct sk_buff *skb, struct nlmsghdr* nlh, void *arg)
ops = lookup_rules_ops(net, frh->family);
if (ops == NULL) {
- err = EAFNOSUPPORT;
+ err =
-
EAFNOSUPPORT;
goto errout;
}