linux/drivers/infiniband/hw
Colin Ian King 7ef7587541 RDMA/hns: fix potential integer overflow on left shift
There is a potential integer overflow when int i is left shifted as this
is evaluated using 32 bit arithmetic but is being used in a context that
expects an expression of type dma_addr_t.  Fix this by casting integer i
to dma_addr_t before shifting to avoid the overflow.

Addresses-Coverity: ("Unintentional integer overflow")
Fixes: 2ac0bc5e72 ("RDMA/hns: Add a group interfaces for optimizing buffers getting flow")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
2019-06-25 10:18:19 -03:00
..
bnxt_re RDMA: Check umem pointer validity prior to release 2019-06-20 15:17:59 -04:00
cxgb3 RDMA: Check umem pointer validity prior to release 2019-06-20 15:17:59 -04:00
cxgb4 RDMA: Check umem pointer validity prior to release 2019-06-20 15:17:59 -04:00
efa RDMA/efa: Print address on AH creation failure 2019-06-21 11:52:44 -04:00
hfi1 IB/{rdmavt, qib, hfi1}: Convert to new completion API 2019-06-20 22:35:09 -04:00
hns RDMA/hns: fix potential integer overflow on left shift 2019-06-25 10:18:19 -03:00
i40iw RDMA: Check umem pointer validity prior to release 2019-06-20 15:17:59 -04:00
mlx4 RDMA: Check umem pointer validity prior to release 2019-06-20 15:17:59 -04:00
mlx5 RDMA/mlx5: Refactor MR descriptors allocation 2019-06-24 11:49:28 -03:00
mthca RDMA: Check umem pointer validity prior to release 2019-06-20 15:17:59 -04:00
ocrdma RDMA: Check umem pointer validity prior to release 2019-06-20 15:17:59 -04:00
qedr RDMA: Check umem pointer validity prior to release 2019-06-20 15:17:59 -04:00
qib IB/{rdmavt, qib, hfi1}: Convert to new completion API 2019-06-20 22:35:09 -04:00
usnic RDMA: Convert CQ allocations to be under core responsibility 2019-06-11 16:39:49 -04:00
vmw_pvrdma RDMA/mlx5: Remove unused IB_WR_REG_SIG_MR code 2019-06-24 11:49:28 -03:00
Makefile rdma: Remove nes 2019-06-13 09:59:49 -04:00