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: 403cd12e2cf7 ("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
..
2018-06-12 16:19:22 -07:00
2016-05-13 13:37:18 -04:00
2016-03-03 10:20:25 -05:00
2018-10-16 11:32:40 -04:00
2018-10-16 12:47:40 -04:00
2016-03-03 10:20:25 -05:00
2018-10-26 07:38:19 -07:00