OSDN Git Service

RDMA/core: Validate port number in query_pkey verb
authorYuval Shaia <yuval.shaia@oracle.com>
Thu, 6 Dec 2018 12:48:18 +0000 (14:48 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Fri, 7 Dec 2018 21:33:09 +0000 (14:33 -0700)
commit9af3f5cf9d64a056eca53bc643f6288ad28bbbb5
tree59117acfb33c303971efcc368cd43f78e3bf654e
parentfe15bcc6e23f4d5273dfbc056bae8710723f03d0
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>
drivers/infiniband/core/device.c