[PATCH openEuler-5.10 1/2] moxart: fix potential use-after-free on remove path