]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
net: ipip: fix wrong address family in init error path
authorVadim Fedorenko <vfedorenko@novek.ru>
Wed, 20 May 2020 08:50:48 +0000 (11:50 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 22 May 2020 00:24:25 +0000 (17:24 -0700)
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>
net/ipv4/ipip.c

index 2f01cf6fa0deffb6f86a4db89b0aa8b951d0f352..678575adaf3b74a154bffff439a1ec53f13358d5 100644 (file)
@@ -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