From: Hangbin Liu Date: Thu, 9 May 2024 13:18:10 +0000 (+0800) Subject: ipv6: sr: add missing seg6_local_exit X-Git-Tag: v5.10.219~214 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1ba1b4cc3afbf7b89d6c81b8cf0f608cdf73b118;p=thirdparty%2Fkernel%2Fstable.git ipv6: sr: add missing seg6_local_exit [ Upstream commit 3321687e321307629c71b664225b861ebf3e5753 ] Currently, we only call seg6_local_exit() in seg6_init() if seg6_local_init() failed. But forgot to call it in seg6_exit(). Fixes: d1df6fd8a1d2 ("ipv6: sr: define core operations for seg6local lightweight tunnel") Signed-off-by: Hangbin Liu Reviewed-by: Sabrina Dubroca Reviewed-by: David Ahern Link: https://lore.kernel.org/r/20240509131812.1662197-2-liuhangbin@gmail.com Signed-off-by: Jakub Kicinski Signed-off-by: Sasha Levin --- diff --git a/net/ipv6/seg6.c b/net/ipv6/seg6.c index a8439fded12dc..1a7bd85746b3a 100644 --- a/net/ipv6/seg6.c +++ b/net/ipv6/seg6.c @@ -503,6 +503,7 @@ void seg6_exit(void) seg6_hmac_exit(); #endif #ifdef CONFIG_IPV6_SEG6_LWTUNNEL + seg6_local_exit(); seg6_iptunnel_exit(); #endif unregister_pernet_subsys(&ip6_segments_ops);