diff options
author | Peter Xu <peterx@redhat.com> | 2020-12-15 06:14:05 +0300 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2020-12-15 23:13:46 +0300 |
commit | 1e17a24edf9bef891bbdd02617eaab4fa6efcd7f (patch) | |
tree | cb7d97519d280f7dd7b29cf4fd38ed1f28323382 /tools/perf/scripts/python | |
parent | 164c50be2878f4caf6d7973e8e0e438f182f4ded (diff) | |
download | linux-1e17a24edf9bef891bbdd02617eaab4fa6efcd7f.tar.xz |
userfaultfd/selftests: fix retval check for userfaultfd_open()
userfaultfd_open() returns 1 for errors rather than negatives. Fix it on
all the callers so when UFFDIO_API failed the test will bail out.
Link: https://lkml.kernel.org/r/20201208024709.7701-3-peterx@redhat.com
Signed-off-by: Peter Xu <peterx@redhat.com>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Cc: Mike Rapoport <rppt@linux.vnet.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions