OSDN Git Service

RDMA/hns: Fix the bug while use multi-hop of pbl
authorLijun Ou <oulijun@huawei.com>
Sat, 8 Dec 2018 10:40:09 +0000 (18:40 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Dec 2019 08:20:01 +0000 (09:20 +0100)
commit2ec10345885541e618fb4a01694bce4e562b8e44
treeaeea225314e497be3261c80d4fa0701ee7c81a96
parent60da6da4b5117c262c10ec921964299c773a4125
RDMA/hns: Fix the bug while use multi-hop of pbl

[ Upstream commit 4af07f01f7a787ba5158352b98c9e3cb74995a1c ]

It will prevent multiply overflow when defines the pbl for u64 type.

Signed-off-by: Lijun Ou <oulijun@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/infiniband/hw/hns/hns_roce_mr.c