[openEuler-5.10 124/150] drivers:md:fix a potential use-after-free bug