[PATCH 4.14 059/343] RDMA/qedr: Fix out of bounds index check in query pkey