[PATCH 4.14 072/186] RDMA/hns: Validate the pkey index