Skip to content

Commit

Permalink
net: ipip: fix wrong address family in init error path
Browse files Browse the repository at this point in the history
In case of error with MPLS support the code is misusing AF_INET
instead of AF_MPLS.

Fixes: 1b69e7e ("ipip: support MPLS over IPv4")
Signed-off-by: Vadim Fedorenko <vfedorenko@novek.ru>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
vvfedorenko authored and davem330 committed May 22, 2020
1 parent a553461 commit 57ebc8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/ipv4/ipip.c
Original file line number Diff line number Diff line change
Expand Up @@ -698,7 +698,7 @@ static int __init ipip_init(void)

rtnl_link_failed:
#if IS_ENABLED(CONFIG_MPLS)
xfrm4_tunnel_deregister(&mplsip_handler, AF_INET);
xfrm4_tunnel_deregister(&mplsip_handler, AF_MPLS);
xfrm_tunnel_mplsip_failed:

#endif
Expand Down

0 comments on commit 57ebc8f

Please sign in to comment.