Commit c5c7dfff authored by Greg Ungerer's avatar Greg Ungerer Committed by Linus Torvalds

[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.
parent 26c78a95
......@@ -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. */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment