Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 183758
b: refs/heads/master
c: e924960
h: refs/heads/master
v: v3
  • Loading branch information
Alexey Dobriyan authored and David S. Miller committed Jan 28, 2010
1 parent 9075c59 commit 92c91a3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ce96bc86bf2ee12e8a3bf461ca8027557c1ef42f
refs/heads/master: e924960dacdf85d118a98c7262edf2f99c3015cf
16 changes: 11 additions & 5 deletions trunk/net/ipv6/xfrm6_tunnel.c
Original file line number Diff line number Diff line change
Expand Up @@ -353,13 +353,19 @@ static struct xfrm6_tunnel xfrm46_tunnel_handler = {

static int __init xfrm6_tunnel_init(void)
{
if (xfrm_register_type(&xfrm6_tunnel_type, AF_INET6) < 0)
int rv;

rv = xfrm_register_type(&xfrm6_tunnel_type, AF_INET6);
if (rv < 0)
goto err;
if (xfrm6_tunnel_register(&xfrm6_tunnel_handler, AF_INET6))
rv = xfrm6_tunnel_register(&xfrm6_tunnel_handler, AF_INET6);
if (rv < 0)
goto unreg;
if (xfrm6_tunnel_register(&xfrm46_tunnel_handler, AF_INET))
rv = xfrm6_tunnel_register(&xfrm46_tunnel_handler, AF_INET);
if (rv < 0)
goto dereg6;
if (xfrm6_tunnel_spi_init() < 0)
rv = xfrm6_tunnel_spi_init();
if (rv < 0)
goto dereg46;
return 0;

Expand All @@ -370,7 +376,7 @@ static int __init xfrm6_tunnel_init(void)
unreg:
xfrm_unregister_type(&xfrm6_tunnel_type, AF_INET6);
err:
return -EAGAIN;
return rv;
}

static void __exit xfrm6_tunnel_fini(void)
Expand Down

0 comments on commit 92c91a3

Please sign in to comment.