patch-2.0.1 linux/include/linux/mm.h

Next file: linux/include/linux/msdos_fs.h
Previous file: linux/include/linux/minix_fs.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.0.0/linux/include/linux/mm.h linux/include/linux/mm.h
@@ -318,7 +318,8 @@
 	unsigned long grow;
 
 	address &= PAGE_MASK;
-	if (vma->vm_end - address > current->rlim[RLIMIT_STACK].rlim_cur)
+	if (vma->vm_end - address
+	    > (unsigned long) current->rlim[RLIMIT_STACK].rlim_cur)
 		return -ENOMEM;
 	grow = vma->vm_start - address;
 	vma->vm_start = address;

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