aboutsummaryrefslogtreecommitdiffstats
path: root/include/rdma/ib_verbs.h
diff options
context:
space:
mode:
authorJason Gunthorpe <jgg@mellanox.com>2019-08-19 14:17:06 +0300
committerJason Gunthorpe <jgg@mellanox.com>2019-08-21 14:08:43 -0300
commit204e3e5630c5d41948fc11d8419c07da8f3e5a4d (patch)
treebeff53d4d2ef58f612caaebddec78eda7819a554 /include/rdma/ib_verbs.h
parentRDMA/odp: Provide ib_umem_odp_release() to undo the allocs (diff)
downloadlinux-dev-204e3e5630c5d41948fc11d8419c07da8f3e5a4d.tar.xz
linux-dev-204e3e5630c5d41948fc11d8419c07da8f3e5a4d.zip
RDMA/odp: Check for overflow when computing the umem_odp end
Since the page size can be extended in the ODP case by IB_ACCESS_HUGETLB the existing overflow checks done by ib_umem_get() are not sufficient. Check for overflow again. Further, remove the unchecked math from the inlines and just use the precomputed value stored in the interval_tree_node. Link: https://lore.kernel.org/r/20190819111710.18440-9-leon@kernel.org Signed-off-by: Leon Romanovsky <leonro@mellanox.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'include/rdma/ib_verbs.h')
0 files changed, 0 insertions, 0 deletions