[PATCH 4.9 040/271] RDMA/qedr: Fix out of bounds index check in query pkey