diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2018-07-04 11:58:02 +0200 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2018-07-04 20:06:26 +0200 |
commit | c1dfc0114c901b4f46c85ceff0491debf2b2a2ec (patch) | |
tree | 427a3e3635c02e542e86e253593503c8843fd930 /include/uapi/rdma/mlx5-abi.h | |
parent | RDMA/bnxt_re: Fix a couple off by one bugs (diff) | |
download | linux-c1dfc0114c901b4f46c85ceff0491debf2b2a2ec.tar.xz linux-c1dfc0114c901b4f46c85ceff0491debf2b2a2ec.zip |
RDMA/bnxt_re: Fix a bunch of off by one bugs in qplib_fp.c
The srq->swq[] is allocated in bnxt_qplib_create_srq(). It has
srq->hwq.max_elements elements so these tests should be > instead of >=
or we might go beyond the end of the array.
Fixes: 1ac5a4047975 ("RDMA/bnxt_re: Add bnxt_re RoCE driver")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Selvin Xavier <selvin.xavier@broadcom.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'include/uapi/rdma/mlx5-abi.h')
0 files changed, 0 insertions, 0 deletions