diff options
author | Shiraz Saleem <[email protected]> | 2021-06-22 12:52:31 -0500 |
---|---|---|
committer | Jason Gunthorpe <[email protected]> | 2021-06-22 15:25:47 -0300 |
commit | c4eb44ffd9d7d30902345accb2bd1e2334d1f5f2 (patch) | |
tree | bbee4c6e9643451278888ca90adf0204afaba1b6 /net/lapb | |
parent | f176199dc7a8a35cfd2bc76f57604614d6fafecc (diff) |
RDMA/irdma: Check return value from ib_umem_find_best_pgsz
iwmr->page_size stores the return from ib_umem_find_best_pgsz and maybe
zero when used in ib_umem_num_dma_blocks thus causing a divide by zero
error.
Fix this by erroring out of irdma_reg_user when 0 is returned from
ib_umem_find_best_pgsz.
Link: https://lore.kernel.org/r/[email protected]
Reported-by: coverity-bot <[email protected]>
Addresses-Coverity-ID: 1505149 ("Integer handling issues")
Fixes: b48c24c2d710 ("RDMA/irdma: Implement device supported verb APIs")
Signed-off-by: Shiraz Saleem <[email protected]>
Signed-off-by: Tatyana Nikolova <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'net/lapb')
0 files changed, 0 insertions, 0 deletions