linux/drivers/infiniband
Artemy Kovalyov 605728e65a IB/umem: Set correct address to the invalidation function
The invalidate range was using PAGE_SIZE instead of the computed 'end',
and had the wrong transformation of page_index due the weird
construction. This can trigger during error unwind and would cause
malfunction.

Inline the code and correct the math.

Fixes: 403cd12e2c ("IB/umem: Add contiguous ODP support")
Signed-off-by: Artemy Kovalyov <artemyko@mellanox.com>
Signed-off-by: Moni Shoua <monis@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
2018-11-26 16:28:36 -07:00
..
core IB/umem: Set correct address to the invalidation function 2018-11-26 16:28:36 -07:00
hw IB/mlx5: Skip non-ODP MR when handling a page fault 2018-11-26 16:27:29 -07:00
sw RDMA/rdmavt: Fix rvt_create_ah function signature 2018-11-21 15:55:32 -07:00
ulp iser: set sector for ambiguous mr status errors 2018-11-21 16:03:43 -07:00
Kconfig RDMA: Fix building with CONFIG_MMU=n 2018-10-03 16:01:03 -06:00
Makefile