commit | 7b33dc2b050b71de0e202885a26caffbc864d072 | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Thu Jun 14 21:36:09 2012 +0300 |
committer | Roland Dreier <roland@purestorage.com> | Thu Jun 14 13:30:41 2012 -0700 |
tree | 753427658579c7865dd3b62efce7c9e1dafc7cee | |
parent | a3698a9b919d2a54e3348be48ab65d102b2f105d [diff] |
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 <dan.carpenter@oracle.com> Signed-off-by: Roland Dreier <roland@purestorage.com>