diff options
author | Alex Williamson <alex.williamson@redhat.com> | 2021-02-16 15:49:34 -0700 |
---|---|---|
committer | Alex Williamson <alex.williamson@redhat.com> | 2021-02-22 10:17:13 -0700 |
commit | 07956b6269d3ed05d854233d5bb776dca91751dd (patch) | |
tree | 17738c3164a557a03f357d3f483ee6fe347b1454 /lib/of-reconfig-notifier-error-inject.c | |
parent | 72d6e4871f0457dc9e498f8437ea344ee6b78075 (diff) | |
download | linux-07956b6269d3ed05d854233d5bb776dca91751dd.tar.bz2 |
vfio/type1: Use follow_pte()
follow_pfn() doesn't make sure that we're using the correct page
protections, get the pte with follow_pte() so that we can test
protections and get the pfn from the pte.
Fixes: 5cbf3264bc71 ("vfio/type1: Fix VA->PA translation for PFNMAP VMAs in vaddr_get_pfn()")
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'lib/of-reconfig-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions