summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/gecko.py
diff options
context:
space:
mode:
authorAlex Williamson <alex.williamson@redhat.com>2025-02-19 01:22:01 +0300
committerAlex Williamson <alex.williamson@redhat.com>2025-02-27 21:55:39 +0300
commitafe84f3b7a26037b258be0f0a1e1754fc1db37e8 (patch)
tree03e43faf54e7234661450d24ee132b9af627dc7e /tools/perf/scripts/python/gecko.py
parent41112160ca87d6b5280813ef61f1c35bb9ee2f82 (diff)
downloadlinux-afe84f3b7a26037b258be0f0a1e1754fc1db37e8.tar.xz
vfio/type1: Catch zero from pin_user_pages_remote()
pin_user_pages_remote() can currently return zero for invalid args or zero nr_pages, neither of which should ever happen. However vaddr_get_pfns() indicates it should only ever return a positive value or -errno and there's a theoretical case where this can slip through and be unhandled by callers. Therefore convert zero to -EFAULT. Reviewed-by: Peter Xu <peterx@redhat.com> Reviewed-by: Mitchell Augustin <mitchell.augustin@canonical.com> Tested-by: Mitchell Augustin <mitchell.augustin@canonical.com> Reviewed-by: Jason Gunthorpe <jgg@nvidia.com> Link: https://lore.kernel.org/r/20250218222209.1382449-2-alex.williamson@redhat.com Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/gecko.py')
0 files changed, 0 insertions, 0 deletions