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