Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
devlink: fix possible use-after-free and memory leaks in devlink_init()
[ Upstream commit def689f ] 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: 687125b ("devlink: split out core code") Signed-off-by: Vasiliy Kovalev <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Paolo Abeni <[email protected]> Signed-off-by: Sasha Levin <[email protected]>
- Loading branch information