[IPV6]: Make xfrm6_init to return an error code.
authorDaniel Lezcano <dlezcano@fr.ibm.com>
Fri, 7 Dec 2007 08:42:11 +0000 (00:42 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 22:56:45 +0000 (14:56 -0800)
commit0013cabab30ec55830ce63d34c0bdd887eb87644
tree667338ce7d2e2b859f1a0fd8d268622da471fe08
parentd63bddbe90c4fd924b2155ca92a879393d856170
[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>
include/net/xfrm.h
net/ipv6/xfrm6_policy.c
net/ipv6/xfrm6_state.c