patch-2.1.25 linux/kernel/module.c

Next file: linux/kernel/sched.c
Previous file: linux/init/main.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.24/linux/kernel/module.c linux/kernel/module.c
@@ -583,7 +583,7 @@
 
 calc_space_needed:
 	for (; i < mod->nsyms; ++i, ++s)
-		space += strlen((++s)->name)+1;
+		space += strlen(s->name)+1;
 
 	if (put_user(space, ret))
 		return -EFAULT;

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