[PATCH v2] moxart: fix potential use-after-free on remove path