diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-07-28 13:51:58 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-07-31 08:22:37 +0200 |
commit | 74c9985e30cf576ee19f877a40eec4d0fe076308 (patch) | |
tree | 564c0cea5c4fc80535ee69ae10486b5800601d48 /tools | |
parent | a89b48fe9308d976d9dcb2112e264d647f7efce4 (diff) | |
download | linux-stable-74c9985e30cf576ee19f877a40eec4d0fe076308.tar.gz linux-stable-74c9985e30cf576ee19f877a40eec4d0fe076308.tar.bz2 linux-stable-74c9985e30cf576ee19f877a40eec4d0fe076308.zip |
selftest: fix build error in tools/testing/selftests/vm/userfaultfd.c
When backporting 0db282ba2c12 ("selftest: use mmap instead of
posix_memalign to allocate memory") to this stable branch, I forgot a {
breaking the build.
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/testing/selftests/vm/userfaultfd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/vm/userfaultfd.c b/tools/testing/selftests/vm/userfaultfd.c index 16d42b2de424..1963440f6725 100644 --- a/tools/testing/selftests/vm/userfaultfd.c +++ b/tools/testing/selftests/vm/userfaultfd.c @@ -131,7 +131,7 @@ static void anon_allocate_area(void **alloc_area) { *alloc_area = mmap(NULL, nr_pages * page_size, PROT_READ | PROT_WRITE, MAP_ANONYMOUS | MAP_PRIVATE, -1, 0); - if (*alloc_area == MAP_FAILED) + if (*alloc_area == MAP_FAILED) { fprintf(stderr, "mmap of anonymous memory failed"); *alloc_area = NULL; } |