patch-2.4.21 linux-2.4.21/kernel/module.c
Next file: linux-2.4.21/kernel/printk.c
Previous file: linux-2.4.21/kernel/ksyms.c
Back to the patch index
Back to the overall index
- Lines: 22
- Date:
2003-06-13 07:51:39.000000000 -0700
- Orig file:
linux-2.4.20/kernel/module.c
- Orig date:
2001-11-11 11:23:14.000000000 -0800
diff -urN linux-2.4.20/kernel/module.c linux-2.4.21/kernel/module.c
@@ -303,7 +303,7 @@
error = namelen;
goto err0;
}
- if (size < sizeof(struct module)+namelen) {
+ if (size < sizeof(struct module)+namelen+1) {
error = -EINVAL;
goto err1;
}
@@ -482,10 +482,10 @@
error = n_namelen;
goto err2;
}
- if (namelen != n_namelen || strcmp(n_name, mod_tmp.name) != 0) {
+ if (namelen != n_namelen || strcmp(n_name, name_tmp) != 0) {
printk(KERN_ERR "init_module: changed module name to "
"`%s' from `%s'\n",
- n_name, mod_tmp.name);
+ n_name, name_tmp);
goto err3;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)