projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a553461
)
net: ipip: fix wrong address family in init error path
author
Vadim Fedorenko
<vfedorenko@novek.ru>
Wed, 20 May 2020 08:50:48 +0000
(11:50 +0300)
committer
David 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
patch
|
blob
|
history
diff --git
a/net/ipv4/ipip.c
b/net/ipv4/ipip.c
index 2f01cf6fa0deffb6f86a4db89b0aa8b951d0f352..678575adaf3b74a154bffff439a1ec53f13358d5 100644
(file)
--- 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