diff options
author | Dan Carpenter | 2015-02-16 11:01:36 +0100 |
---|---|---|
committer | Roland Dreier | 2015-02-18 17:31:06 +0100 |
commit | 59a39ca3f70ad2b4a5d3ee3161e112ec774a4146 (patch) | |
tree | fd19996d49c158c5dd612c9f7d000434ce8610c1 /drivers/infiniband/hw/qib/qib_ud.c | |
parent | RDMA/ocrdma: Use unsigned for bit index (diff) | |
download | kernel-qcow2-linux-59a39ca3f70ad2b4a5d3ee3161e112ec774a4146.tar.gz kernel-qcow2-linux-59a39ca3f70ad2b4a5d3ee3161e112ec774a4146.tar.xz kernel-qcow2-linux-59a39ca3f70ad2b4a5d3ee3161e112ec774a4146.zip |
RDMA/ocrdma: Fix off by one in ocrdma_query_gid()
The ->sgid_tbl[] array has OCRDMA_MAX_SGID number of elements so this
test is off by one. ->sgid_tbl is allocated in ocrdma_alloc_resources().
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Selvin Xavier <selvin.xavier@emulex.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'drivers/infiniband/hw/qib/qib_ud.c')
0 files changed, 0 insertions, 0 deletions