]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ipv6: sr: add missing seg6_local_exit
authorHangbin Liu <liuhangbin@gmail.com>
Thu, 9 May 2024 13:18:10 +0000 (21:18 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 16 Jun 2024 11:39:26 +0000 (13:39 +0200)
commitbc1b9c255bf2d4eb8f35719b13a3540bea99fa3e
tree4eb200af5167150c6b44de1128819cc828a07d4a
parent483eb70f441e2df66ade78aa7217e6e4caadfef3
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 <liuhangbin@gmail.com>
Reviewed-by: Sabrina Dubroca <sd@queasysnail.net>
Reviewed-by: David Ahern <dsahern@kernel.org>
Link: https://lore.kernel.org/r/20240509131812.1662197-2-liuhangbin@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/ipv6/seg6.c