aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modutils/insmod.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/modutils/insmod.c b/modutils/insmod.c
index da149fe2b..bf96a5633 100644
--- a/modutils/insmod.c
+++ b/modutils/insmod.c
@@ -4128,7 +4128,7 @@ extern int insmod_ng_main( int argc, char **argv)
4128 4128
4129 fstat(fd, &st); 4129 fstat(fd, &st);
4130 len = st.st_size; 4130 len = st.st_size;
4131 map = mmap(NULL, len, PROT_READ, MAP_SHARED, fd, 0); 4131 map = mmap(NULL, len, PROT_READ, MAP_PRIVATE, fd, 0);
4132 if (map == MAP_FAILED) { 4132 if (map == MAP_FAILED) {
4133 bb_perror_msg_and_die("cannot mmap `%s'", filename); 4133 bb_perror_msg_and_die("cannot mmap `%s'", filename);
4134 } 4134 }