diff options
| author | Vadim Fedorenko <vfedorenko@novek.ru> | 2020-05-20 11:50:48 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-06-03 08:19:10 +0200 |
| commit | 4bd990649b49d1f34be53db6780d3097a6e9537c (patch) | |
| tree | a1ffe020434a9077369f9370c51480fdc3318601 | |
| parent | 49e7ccf75937114297c102f49166936c3d20205c (diff) | |
net: ipip: fix wrong address family in init error path
[ Upstream commit 57ebc8f08504f176eb0f25b3e0fde517dec61a4f ]
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
| -rw-r--r-- | net/ipv4/ipip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/ipip.c b/net/ipv4/ipip.c index 4368282eb6f8..da2e92380d78 100644 --- a/net/ipv4/ipip.c +++ b/net/ipv4/ipip.c @@ -704,7 +704,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 |
