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/irqchip/irq-ts4800.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/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/irqchip/irq-ts4800.c')
0 files changed, 0 insertions, 0 deletions