We should be using all 64 bits of page_list[i] instead of just the lower 32. Signed-off-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx> diff --git a/drivers/staging/rdma/amso1100/c2_provider.c b/drivers/staging/rdma/amso1100/c2_provider.c index de8d10e..ac6a6ff 100644 --- a/drivers/staging/rdma/amso1100/c2_provider.c +++ b/drivers/staging/rdma/amso1100/c2_provider.c @@ -361,7 +361,7 @@ static struct ib_mr *c2_get_dma_mr(struct ib_pd *pd, int acc) } for (i = 0; i < pbl_depth; i++) - page_list[i] = (i << page_shift); + page_list[i] = ((u64)i << page_shift); mr = kmalloc(sizeof(*mr), GFP_KERNEL); if (!mr) { -- To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html