]> git.itanic.dy.fi Git - linux-stable/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:22:37 +0000 (08:22 +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 16d42b2de424e575b0db29b0b5924a1ba65c12ff..1963440f672512840185b945b6a438baa3d21163 100644 (file)
@@ -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;
        }