summaryrefslogtreecommitdiff
path: root/net/ipv4
diff options
context:
space:
mode:
authorVasiliy Kovalev <kovalev@altlinux.org>2024-02-15 23:34:00 +0300
committerPaolo Abeni <pabeni@redhat.com>2024-02-20 10:17:46 +0100
commitdef689fc26b9a9622d2e2cb0c4933dd3b1c8071c (patch)
tree9d9c59c7807b36e1469713b19ca4092368d610bc /net/ipv4
parent5559cea2d5aa3018a5f00dd2aca3427ba09b386b (diff)
devlink: fix possible use-after-free and memory leaks in devlink_init()
The pernet operations structure for the subsystem must be registered before registering the generic netlink family. Make an unregister in case of unsuccessful registration. Fixes: 687125b5799c ("devlink: split out core code") Signed-off-by: Vasiliy Kovalev <kovalev@altlinux.org> Link: https://lore.kernel.org/r/20240215203400.29976-1-kovalev@altlinux.org Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'net/ipv4')
0 files changed, 0 insertions, 0 deletions