[PATCH 6.7 281/334] devlink: fix possible use-after-free and memory leaks in devlink_init()