Skip to content

Commit

Permalink
stress-iomix: fix mmap flags, should be PROT_READ | PROT_WRITE
Browse files Browse the repository at this point in the history
Signed-off-by: Colin Ian King <[email protected]>
  • Loading branch information
Colin Ian King committed Feb 18, 2017
1 parent 3b8aaf2 commit 396b8e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stress-iomix.c
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ int stress_iomix(const args_t *args)
size_t i;
int pids[SIZEOF_ARRAY(iomix_funcs)];

counters = (void *)mmap(NULL, sz, PROT_WRITE | PROT_WRITE,
counters = (void *)mmap(NULL, sz, PROT_READ | PROT_WRITE,
MAP_SHARED | MAP_ANONYMOUS, -1, 0);
if (counters == MAP_FAILED) {
pr_fail_dbg("mmap");
Expand Down

0 comments on commit 396b8e3

Please sign in to comment.