[PATCH 5.10 398/518] aoe: fix the potential use-after-free problem in more places