mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-13 14:24:11 +08:00
ipv6: sr: fix incorrect unregister order
[ Upstream commit6e370a771d
] Commit5559cea2d5
("ipv6: sr: fix possible use-after-free and null-ptr-deref") changed the register order in seg6_init(). But the unregister order in seg6_exit() is not updated. Fixes:5559cea2d5
("ipv6: sr: fix possible use-after-free and null-ptr-deref") 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-3-liuhangbin@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
9acb7ed4ff
commit
d55cf7ced4
@ -500,6 +500,6 @@ void seg6_exit(void)
|
||||
seg6_local_exit();
|
||||
seg6_iptunnel_exit();
|
||||
#endif
|
||||
unregister_pernet_subsys(&ip6_segments_ops);
|
||||
genl_unregister_family(&seg6_genl_family);
|
||||
unregister_pernet_subsys(&ip6_segments_ops);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user