diff options
author | Selvin Xavier <selvin.xavier@broadcom.com> | 2020-08-24 11:14:33 -0700 |
---|---|---|
committer | Jason Gunthorpe <jgg@nvidia.com> | 2020-08-27 09:30:43 -0300 |
commit | 84cf229f4001c1216afc3e4c7f05e1620a0dd4bc (patch) | |
tree | 5952f9ba5857a96c60311908a493dacc9b2b5893 /kernel/acct.c | |
parent | 2d0e60ee322d512fa6bc62d23a6760b39a380847 (diff) | |
download | linux-84cf229f4001c1216afc3e4c7f05e1620a0dd4bc.tar.bz2 |
RDMA/bnxt_re: Fix the qp table indexing
qp->id can be a value outside the max number of qp. Indexing the qp table
with the id can cause out of bounds crash. So changing the qp table
indexing by (qp->id % max_qp -1).
Allocating one extra entry for QP1. Some adapters create one more than the
max_qp requested to accommodate QP1. If the qp->id is 1, store the
inforamtion in the last entry of the qp table.
Fixes: f218d67ef004 ("RDMA/bnxt_re: Allow posting when QPs are in error")
Link: https://lore.kernel.org/r/1598292876-26529-4-git-send-email-selvin.xavier@broadcom.com
Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'kernel/acct.c')
0 files changed, 0 insertions, 0 deletions