[PATCH 5.4 310/389] devlink: Fix use-after-free after a failed reload