summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Fedorenko <vfedorenko@novek.ru>2020-05-20 11:50:48 +0300
committerDavid S. Miller <davem@davemloft.net>2020-05-21 17:24:25 -0700
commit57ebc8f08504f176eb0f25b3e0fde517dec61a4f (patch)
tree0796bf1df2f289283a573456be9195f93af070ea
parenta5534617007a1c33095db35c36b6455ee7add00b (diff)
downloadlinux-57ebc8f08504f176eb0f25b3e0fde517dec61a4f.tar.bz2
net: ipip: fix wrong address family in init error path
In case of error with MPLS support the code is misusing AF_INET instead of AF_MPLS. Fixes: 1b69e7e6c4da ("ipip: support MPLS over IPv4") Signed-off-by: Vadim Fedorenko <vfedorenko@novek.ru> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--net/ipv4/ipip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/ipip.c b/net/ipv4/ipip.c
index 2f01cf6fa0de..678575adaf3b 100644
--- a/net/ipv4/ipip.c
+++ b/net/ipv4/ipip.c
@@ -698,7 +698,7 @@ out:
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