[PATCH 5.4 204/408] RDMA/hns: Add a check for current state before modifying QP