From: Dan Carpenter Date: Thu, 14 Jun 2012 18:36:09 +0000 (+0300) Subject: RDMA/ocrdma: Fix off by one in ocrdma_query_gid() X-Git-Tag: v3.5-rc4~3^2^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7b33dc2b050b71de0e202885a26caffbc864d072;p=pandora-kernel.git RDMA/ocrdma: Fix off by one in ocrdma_query_gid() The dev->sgid_tbl[] array is allocated in ocrdma_alloc_resources(). It has OCRDMA_MAX_SGID elements so the test here is off by one. Signed-off-by: Dan Carpenter Signed-off-by: Roland Dreier --- Reading git-diff-tree failed