patch-1.3.45 linux/mm/memory.c

Next file: linux/net/ipv4/icmp.c
Previous file: linux/kernel/sched.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.44/linux/mm/memory.c linux/mm/memory.c
@@ -663,7 +663,7 @@
 		goto good_area;
 	if (!(vma->vm_flags & VM_GROWSDOWN))
 		goto bad_area;
-	if (vma->vm_end - start > current->rlim[RLIMIT_STACK].rlim_cur)
+	if (expand_stack(vma, start))
 		goto bad_area;
 
 good_area:

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this