[PATCH 5.17 292/343] RDMA/hfi1: Fix use-after-free bug for mm struct