RDMA/core: Validate port number in query_pkey verb

Before calling the driver's function let's make sure port is valid.

Signed-off-by: Yuval Shaia <yuval.shaia@oracle.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
This commit is contained in:
Yuval Shaia 2018-12-06 14:48:18 +02:00 • committed by Jason Gunthorpe
commit 9af3f5cf9d