Skip to content

Commit 3321687

Browse files
liuhangbinkuba-moo
authored andcommitted
ipv6: sr: add missing seg6_local_exit
Currently, we only call seg6_local_exit() in seg6_init() if seg6_local_init() failed. But forgot to call it in seg6_exit(). Fixes: d1df6fd ("ipv6: sr: define core operations for seg6local lightweight tunnel") Signed-off-by: Hangbin Liu <[email protected]> Reviewed-by: Sabrina Dubroca <[email protected]> Reviewed-by: David Ahern <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 7c98817 commit 3321687

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

net/ipv6/seg6.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -564,6 +564,7 @@ void seg6_exit(void)
564564
seg6_hmac_exit();
565565
#endif
566566
#ifdef CONFIG_IPV6_SEG6_LWTUNNEL
567+
seg6_local_exit();
567568
seg6_iptunnel_exit();
568569
#endif
569570
unregister_pernet_subsys(&ip6_segments_ops);

0 commit comments

Comments
 (0)