]> git.openpandora.org Git - pandora-kernel.git/commitdiff
RDMA/ocrdma: Fix off by one in ocrdma_query_gid()
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 16 Feb 2015 10:01:36 +0000 (13:01 +0300)
committerRoland Dreier <roland@purestorage.com>
Wed, 18 Feb 2015 16:31:06 +0000 (08:31 -0800)
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>

No differences found