aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6/xfrm6_state.c
diff options
context:
space:
mode:
authorDaniel Lezcano <dlezcano@fr.ibm.com>2007-12-07 03:42:11 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 17:56:45 -0500
commit0013cabab30ec55830ce63d34c0bdd887eb87644 (patch)
tree667338ce7d2e2b859f1a0fd8d268622da471fe08 /net/ipv6/xfrm6_state.c
parentd63bddbe90c4fd924b2155ca92a879393d856170 (diff)
[IPV6]: Make xfrm6_init to return an error code.
The xfrm initialization function does not return any error code, so if there is an error, the caller can not be advise of that. This patch checks the return code of the different called functions in order to return a successful or failed initialization. Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com> Acked-by: Benjamin Thery <benjamin.thery@bull.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/xfrm6_state.c')
-rw-r--r--net/ipv6/xfrm6_state.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv6/xfrm6_state.c b/net/ipv6/xfrm6_state.c
index a7a7e8fd6a33..dc817e035e23 100644
--- a/net/ipv6/xfrm6_state.c
+++ b/net/ipv6/xfrm6_state.c
@@ -198,9 +198,9 @@ static struct xfrm_state_afinfo xfrm6_state_afinfo = {
198 .transport_finish = xfrm6_transport_finish, 198 .transport_finish = xfrm6_transport_finish,
199}; 199};
200 200
201void __init xfrm6_state_init(void) 201int __init xfrm6_state_init(void)
202{ 202{
203 xfrm_state_register_afinfo(&xfrm6_state_afinfo); 203 return xfrm_state_register_afinfo(&xfrm6_state_afinfo);
204} 204}
205 205
206void xfrm6_state_fini(void) 206void xfrm6_state_fini(void)