[PATCH 5.4 366/389] drivers:md:fix a potential use-after-free bug