[PATCH openEuler-5.10 10/31] arm64/mpam: Fix use-after-free in mkdir_resctrl_prepare()