aboutsummaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorGreg Ungerer <gerg@snapgear.com>2004-05-19 06:13:49 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-05-19 06:13:49 -0700
commitc5c7dfff6494c407de69e458f43df55c7a3709e0 (patch)
treedebbf9eca97a6a445d78dd40ea3e89353f89dc58 /mm
parent26c78a959a6a64ae032e6d009aaeac7b630ad7e6 (diff)
downloadhistory-c5c7dfff6494c407de69e458f43df55c7a3709e0.tar.gz
[PATCH] ucLinux: return 0 on success from do_munmap() for nommu version
Added a nommu version of sysctl_max_map_count. Fix return value from do_munmap(), it should return 0 on success not EINVAL.
Diffstat (limited to 'mm')
-rw-r--r--mm/nommu.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/mm/nommu.c b/mm/nommu.c
index 1432dbab85eba2..16711103bc0ff5 100644
--- a/mm/nommu.c
+++ b/mm/nommu.c
@@ -34,6 +34,9 @@ atomic_t vm_committed_space = ATOMIC_INIT(0);
int sysctl_overcommit_memory; /* default is heuristic overcommit */
int sysctl_overcommit_ratio = 50; /* default is 50% */
+int sysctl_max_map_count = DEFAULT_MAX_MAP_COUNT;
+EXPORT_SYMBOL(sysctl_max_map_count);
+
/*
* Handle all mappings that got truncated by a "truncate()"
* system call.
@@ -486,7 +489,7 @@ int do_munmap(struct mm_struct * mm, unsigned long addr, size_t len)
show_process_blocks();
#endif
- return -EINVAL;
+ return 0;
}
/* Release all mmaps. */