Skip to content

Commit 57ebc8f

Browse files
vvfedorenkodavem330
authored andcommitted
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: 1b69e7e ("ipip: support MPLS over IPv4") Signed-off-by: Vadim Fedorenko <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent a553461 commit 57ebc8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/ipv4/ipip.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -698,7 +698,7 @@ static int __init ipip_init(void)
698698

699699
rtnl_link_failed:
700700
#if IS_ENABLED(CONFIG_MPLS)
701-
xfrm4_tunnel_deregister(&mplsip_handler, AF_INET);
701+
xfrm4_tunnel_deregister(&mplsip_handler, AF_MPLS);
702702
xfrm_tunnel_mplsip_failed:
703703

704704
#endif

0 commit comments

Comments
 (0)