From: Greg Kroah-Hartman Date: Wed, 28 Jul 2021 11:51:58 +0000 (+0200) Subject: selftest: fix build error in tools/testing/selftests/vm/userfaultfd.c X-Git-Tag: v4.19.200~17 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=74c9985e30cf576ee19f877a40eec4d0fe076308;p=users%2Fdwmw2%2Flinux.git 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 --- diff --git a/tools/testing/selftests/vm/userfaultfd.c b/tools/testing/selftests/vm/userfaultfd.c index 16d42b2de424e..1963440f67251 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; }