diff options
author | Gal Pressman <galpress@amazon.com> | 2019-01-07 18:27:55 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-01-27 16:46:12 +0300 |
commit | 499cd1060357131a4348534f8cf35b8b4e0efb5f (patch) | |
tree | 8f259301a1a7fcb52e7cdbc696806ec1de6edc74 /drivers/infiniband/hw/qedr/verbs.c | |
parent | 4963f23081cc55c4e92269c8e0c13f85c63e9094 (diff) | |
download | linux-499cd1060357131a4348534f8cf35b8b4e0efb5f.tar.xz |
RDMA/ocrdma: Fix out of bounds index check in query pkey
[ Upstream commit b188940796c7be31c1b8c25a9a0e0842c2e7a49e ]
The pkey table size is one element, index should be tested for > 0 instead
of > 1.
Fixes: fe2caefcdf58 ("RDMA/ocrdma: Add driver for Emulex OneConnect IBoE RDMA adapter")
Signed-off-by: Gal Pressman <galpress@amazon.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/infiniband/hw/qedr/verbs.c')
0 files changed, 0 insertions, 0 deletions