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