summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/usnic/usnic_ib_verbs.c
diff options
context:
space:
mode:
authorKamal Heib <kamalheib1@gmail.com>2021-11-17 16:59:54 +0200
committerJason Gunthorpe <jgg@nvidia.com>2021-11-17 16:52:18 -0400
commit2a67fcfa0db6b4075515bd23497750849b88850f (patch)
treeddb07c157175a73198bae03d00b0455f15d436a7 /drivers/infiniband/hw/usnic/usnic_ib_verbs.c
parent679f2b7552b4f3c28ba54ef4c5e7ab28374e30d2 (diff)
downloadlinux-stable-2a67fcfa0db6b4075515bd23497750849b88850f.tar.gz
linux-stable-2a67fcfa0db6b4075515bd23497750849b88850f.tar.bz2
linux-stable-2a67fcfa0db6b4075515bd23497750849b88850f.zip
RDMA/hns: Validate the pkey index
Before query pkey, make sure that the queried index is valid. Fixes: 9a4435375cd1 ("IB/hns: Add driver files for hns RoCE driver") Link: https://lore.kernel.org/r/20211117145954.123893-1-kamalheib1@gmail.com Signed-off-by: Kamal Heib <kamalheib1@gmail.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'drivers/infiniband/hw/usnic/usnic_ib_verbs.c')
0 files changed, 0 insertions, 0 deletions