[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>
This commit is contained in:
committed by
David S. Miller
parent
d63bddbe90
commit
0013cabab3
@@ -198,9 +198,9 @@ static struct xfrm_state_afinfo xfrm6_state_afinfo = {
|
||||
.transport_finish = xfrm6_transport_finish,
|
||||
};
|
||||
|
||||
void __init xfrm6_state_init(void)
|
||||
int __init xfrm6_state_init(void)
|
||||
{
|
||||
xfrm_state_register_afinfo(&xfrm6_state_afinfo);
|
||||
return xfrm_state_register_afinfo(&xfrm6_state_afinfo);
|
||||
}
|
||||
|
||||
void xfrm6_state_fini(void)
|
||||
|
Reference in New Issue
Block a user