diff options
author | Daniel Lezcano <dlezcano@fr.ibm.com> | 2007-12-07 03:42:11 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 17:56:45 -0500 |
commit | 0013cabab30ec55830ce63d34c0bdd887eb87644 (patch) | |
tree | 667338ce7d2e2b859f1a0fd8d268622da471fe08 /include/net/xfrm.h | |
parent | d63bddbe90c4fd924b2155ca92a879393d856170 (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 'include/net/xfrm.h')
-rw-r--r-- | include/net/xfrm.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/net/xfrm.h b/include/net/xfrm.h index 182f10b29d88..18260921eeb5 100644 --- a/include/net/xfrm.h +++ b/include/net/xfrm.h | |||
@@ -1066,11 +1066,11 @@ struct xfrm6_tunnel { | |||
1066 | 1066 | ||
1067 | extern void xfrm_init(void); | 1067 | extern void xfrm_init(void); |
1068 | extern void xfrm4_init(void); | 1068 | extern void xfrm4_init(void); |
1069 | extern void xfrm6_init(void); | 1069 | extern int xfrm6_init(void); |
1070 | extern void xfrm6_fini(void); | 1070 | extern void xfrm6_fini(void); |
1071 | extern void xfrm_state_init(void); | 1071 | extern void xfrm_state_init(void); |
1072 | extern void xfrm4_state_init(void); | 1072 | extern void xfrm4_state_init(void); |
1073 | extern void xfrm6_state_init(void); | 1073 | extern int xfrm6_state_init(void); |
1074 | extern void xfrm6_state_fini(void); | 1074 | extern void xfrm6_state_fini(void); |
1075 | 1075 | ||
1076 | extern int xfrm_state_walk(u8 proto, int (*func)(struct xfrm_state *, int, void*), void *); | 1076 | extern int xfrm_state_walk(u8 proto, int (*func)(struct xfrm_state *, int, void*), void *); |