linux/drivers/infiniband/hw/hns
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
..
hns_roce_ah.c RDMA: Introduce and use GID attr helper to read RoCE L2 fields 2019-05-03 11:10:02 -03:00
hns_roce_alloc.c RDMA/hns: fix potential integer overflow on left shift 2019-06-25 10:18:19 -03:00
hns_roce_cmd.c RDMA/hns: Fix the chip hanging caused by sending mailbox&CMQ during reset 2019-02-04 16:13:50 -07:00
hns_roce_cmd.h RDMA/hns: Dump detailed driver-specific CQ 2019-04-08 13:05:25 -03:00
hns_roce_common.h RDMA/hns: Remove asynchronic QP destroy 2019-04-24 10:55:31 -03:00
hns_roce_cq.c RDMA: Check umem pointer validity prior to release 2019-06-20 15:17:59 -04:00
hns_roce_db.c RDMA/hns: Replace magic numbers with #defines 2019-05-27 17:31:00 -03:00
hns_roce_device.h RDMA/hns: Fix bug when wqe num is larger than 16K 2019-06-20 12:56:34 -04:00
hns_roce_hem.c RDMA/hns: Add mtr support for mixed multihop addressing 2019-06-20 12:56:34 -04:00
hns_roce_hem.h RDMa/hns: Don't stuck in endless timeout loop 2019-06-20 15:39:43 -04:00
hns_roce_hw_v1.c RDMa/hns: Don't stuck in endless timeout loop 2019-06-20 15:39:43 -04:00
hns_roce_hw_v1.h RDMA/hns: Remove asynchronic QP destroy 2019-04-24 10:55:31 -03:00
hns_roce_hw_v2_dfx.c RDMA/hns: Dump detailed driver-specific CQ 2019-04-08 13:05:25 -03:00
hns_roce_hw_v2.c RDMA: Check umem pointer validity prior to release 2019-06-20 15:17:59 -04:00
hns_roce_hw_v2.h RDMA/hns: reset function when removing module 2019-06-20 15:05:48 -04:00
hns_roce_main.c RDMA: Report available cdevs through RDMA_NLDEV_CMD_GET_CHARDEV 2019-06-18 22:44:08 -04:00
hns_roce_mr.c RDMA: Check umem pointer validity prior to release 2019-06-20 15:17:59 -04:00
hns_roce_pd.c IB: Pass only ib_udata in function prototypes 2019-04-01 15:00:47 -03:00
hns_roce_qp.c RDMA: Check umem pointer validity prior to release 2019-06-20 15:17:59 -04:00
hns_roce_restrack.c RDMA/hns: Dump detailed driver-specific CQ 2019-04-08 13:05:25 -03:00
hns_roce_srq.c RDMA: Check umem pointer validity prior to release 2019-06-20 15:17:59 -04:00
Kconfig IB/{core,uverbs}: Move ib_umem_xxx functions from ib_core to ib_uverbs 2019-01-10 17:06:44 -07:00
Makefile RDMA/hns: Dump detailed driver-specific CQ 2019-04-08 13:05:25 -03:00