diff options
author | Denis V. Lunev <den@openvz.org> | 2008-01-10 06:21:49 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:01:25 -0500 |
commit | dbb50165b512f6c9b7aae10af73ae5b6d811f4d0 (patch) | |
tree | 9ba74fb468ec461668351a64c76c5f5d469842fa /include/net/ip_fib.h | |
parent | 61a0265344786a548e8a0b26cb668e78a71f9602 (diff) |
[IPV4]: Check fib4_rules_init failure.
This adds error paths into both versions of fib4_rules_init
(with/without CONFIG_IP_MULTIPLE_TABLES) and returns error code to the
caller.
Acked-by: Benjamin Thery <benjamin.thery@bull.net>
Acked-by: Daniel Lezcano <dlezcano@fr.ibm.com>
Signed-off-by: Denis V. Lunev <den@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/ip_fib.h')
-rw-r--r-- | include/net/ip_fib.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/ip_fib.h b/include/net/ip_fib.h index f74cbb21af45..cbff18d748dd 100644 --- a/include/net/ip_fib.h +++ b/include/net/ip_fib.h | |||
@@ -186,7 +186,7 @@ static inline void fib_select_default(const struct flowi *flp, struct fib_result | |||
186 | } | 186 | } |
187 | 187 | ||
188 | #else /* CONFIG_IP_MULTIPLE_TABLES */ | 188 | #else /* CONFIG_IP_MULTIPLE_TABLES */ |
189 | extern void __init fib4_rules_init(void); | 189 | extern int __init fib4_rules_init(void); |
190 | 190 | ||
191 | #ifdef CONFIG_NET_CLS_ROUTE | 191 | #ifdef CONFIG_NET_CLS_ROUTE |
192 | extern u32 fib_rules_tclass(struct fib_result *res); | 192 | extern u32 fib_rules_tclass(struct fib_result *res); |