diff options
author | Jason Gunthorpe <jgg@mellanox.com> | 2019-08-19 14:17:06 +0300 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2019-08-21 14:08:43 -0300 |
commit | 204e3e5630c5d41948fc11d8419c07da8f3e5a4d (patch) | |
tree | beff53d4d2ef58f612caaebddec78eda7819a554 /drivers/ata | |
parent | RDMA/odp: Provide ib_umem_odp_release() to undo the allocs (diff) | |
download | linux-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 'drivers/ata')
0 files changed, 0 insertions, 0 deletions