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> |
||
|---|---|---|
| .. | ||
| Kconfig | ||
| Makefile | ||
| ocrdma.h | ||
| ocrdma_abi.h | ||
| ocrdma_ah.c | ||
| ocrdma_ah.h | ||
| ocrdma_hw.c | ||
| ocrdma_hw.h | ||
| ocrdma_main.c | ||
| ocrdma_sli.h | ||
| ocrdma_stats.c | ||
| ocrdma_stats.h | ||
| ocrdma_verbs.c | ||
| ocrdma_verbs.h | ||