RDMA/hns: Add mapped page count checking for MTR
[ Upstream commit 9ea9a53e ] Add the mapped page count checking flow to avoid invalid page size when creating MTR. Fixes: 38389eaa ("RDMA/hns: Add mtr support for mixed multihop addressing") Link: https://lore.kernel.org/r/1612517974-31867-4-git-send-email-liweihang@huawei.com Signed-off-by:Xi Wang <wangxi11@huawei.com> Signed-off-by:
Weihang Li <liweihang@huawei.com> Signed-off-by:
Jason Gunthorpe <jgg@nvidia.com> Stable-dep-of: d586628b ("RDMA/hns: Fix the overflow risk of hem_list_calc_ba_range()") Signed-off-by:
Sasha Levin <sashal@kernel.org>
Loading