summaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/mm/soft-dirty.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/testing/selftests/mm/soft-dirty.c')
-rw-r--r--tools/testing/selftests/mm/soft-dirty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/mm/soft-dirty.c b/tools/testing/selftests/mm/soft-dirty.c
index cc5f144430..7dbfa53d93 100644
--- a/tools/testing/selftests/mm/soft-dirty.c
+++ b/tools/testing/selftests/mm/soft-dirty.c
@@ -137,7 +137,7 @@ static void test_mprotect(int pagemap_fd, int pagesize, bool anon)
if (!map)
ksft_exit_fail_msg("anon mmap failed\n");
} else {
- test_fd = open(fname, O_RDWR | O_CREAT);
+ test_fd = open(fname, O_RDWR | O_CREAT, 0664);
if (test_fd < 0) {
ksft_test_result_skip("Test %s open() file failed\n", __func__);
return;