patch-1.3.6 linux/kernel/exit.c

Next file: linux/kernel/ksyms.c
Previous file: linux/include/net/sock.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.5/linux/kernel/exit.c linux/kernel/exit.c
@@ -486,7 +486,7 @@
 	struct task_struct *p;
 
 	if (stat_addr) {
-		flag = verify_area(VERIFY_WRITE, stat_addr, 4);
+		flag = verify_area(VERIFY_WRITE, stat_addr, sizeof(*stat_addr));
 		if (flag)
 			return flag;
 	}

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