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