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