devlink: fix possible use-after-free and memory leaks in devlink_init() (CVE-2024-26734) | HOL Guard CVE