summaryrefslogtreecommitdiff
path: root/lib/memory-notifier-error-inject.c
diff options
context:
space:
mode:
authorArtemy Kovalyov <artemyko@mellanox.com>2018-11-25 21:34:25 +0300
committerJason Gunthorpe <jgg@mellanox.com>2018-11-27 02:28:36 +0300
commit605728e65ad303a1b639bcae7c0abd2e24e6a930 (patch)
treeda972c50c98feca8dab7cd31d172c05caa1a9e0a /lib/memory-notifier-error-inject.c
parent4d5422a309deecec906c491f8aea77593a46321d (diff)
downloadlinux-605728e65ad303a1b639bcae7c0abd2e24e6a930.tar.xz
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>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions