diff options
author | Jason Gunthorpe <[email protected]> | 2019-08-19 14:17:06 +0300 |
---|---|---|
committer | Jason Gunthorpe <[email protected]> | 2019-08-21 14:08:43 -0300 |
commit | 204e3e5630c5d41948fc11d8419c07da8f3e5a4d (patch) | |
tree | beff53d4d2ef58f612caaebddec78eda7819a554 /net/switchdev/switchdev.c | |
parent | 0446cad9ca385c3b8d6e5a1184e59650fa7a7a6d (diff) |
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/[email protected]
Signed-off-by: Leon Romanovsky <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions