[PATCH 5.4 266/462] aoe: fix the potential use-after-free problem in more places