patch-2.1.101 linux/mm/mlock.c

Next file: linux/mm/page_alloc.c
Previous file: linux/kernel/sysctl.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.100/linux/mm/mlock.c linux/mm/mlock.c
@@ -129,8 +129,8 @@
 
 		if (newflags & VM_LOCKED)
 			while (start < end) {
-				char c;
-				get_user(c,(char *) start);
+				int c;
+				get_user(c,(int *) start);
 				__asm__ __volatile__("": :"r" (c));
 				start += PAGE_SIZE;
 			}

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