[PATCH 17/30] net: hns3: fix use-after-free when doing self test