]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
selftest: fix build error in tools/testing/selftests/vm/userfaultfd.c
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 28 Jul 2021 11:51:58 +0000 (13:51 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 31 Jul 2021 06:19:37 +0000 (08:19 +0200)
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>
tools/testing/selftests/vm/userfaultfd.c

index 17ac167823a6d4cd4e22eb6a7d24c6363a4a5db6..9ba7feffe344b977217c12eba2d7bef416b59841 100644 (file)
@@ -141,7 +141,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;
        }