patch-2.1.19 linux/mm/mmap.c

Next file: linux/Documentation/Configure.help
Previous file: linux/kernel/fork.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.18/linux/mm/mmap.c linux/mm/mmap.c
@@ -310,7 +310,7 @@
 	if (len > TASK_SIZE)
 		return 0;
 	if (!addr)
-		addr = TASK_SIZE / 3;
+		addr = TASK_UNMAPPED_BASE;
 	addr = PAGE_ALIGN(addr);
 
 	for (vmm = find_vma(current->mm, addr); ; vmm = vmm->vm_next) {


FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov