Skip to content
Commit 91b020aa authored by Vasiliy Kovalev's avatar Vasiliy Kovalev Committed by Greg Kroah-Hartman
Browse files

ipv6: sr: fix possible use-after-free and null-ptr-deref

[ Upstream commit 5559cea2 ]

The pernet operations structure for the subsystem must be registered
before registering the generic netlink family.

Fixes: 915d7e5e

 ("ipv6: sr: add code base for control plane support of SR-IPv6")
Signed-off-by: default avatarVasiliy Kovalev <kovalev@altlinux.org>
Link: https://lore.kernel.org/r/20240215202717.29815-1-kovalev@altlinux.org
Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent e5666216
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment