patch-1.3.50 linux/kernel/module.c
Next file: linux/mm/filemap.c
Previous file: linux/kernel/ksyms.c
Back to the patch index
Back to the overall index
- Lines: 24
- Date:
Fri Dec 22 08:22:06 1995
- Orig file:
v1.3.49/linux/kernel/module.c
- Orig date:
Mon Dec 11 15:42:06 1995
diff -u --recursive --new-file v1.3.49/linux/kernel/module.c linux/kernel/module.c
@@ -258,18 +258,17 @@
newtab->n_symbols * sizeof(struct internal_symbol) +
newtab->n_refs * sizeof(struct module_ref);
- if ((newtab->n_symbols < 0) || (newtab->n_refs < 0) ||
- (legal_start > size)) {
- printk("Illegal symbol table! Rejected!\n");
+ if ((newtab->n_symbols < 0) || (newtab->n_refs < 0) || (legal_start > size)) {
+ printk("Rejecting illegal symbol table (n_symbols=%d,n_refs=%d)\n",
+ newtab->n_symbols, newtab->n_refs);
kfree_s(newtab, size);
return -EINVAL;
}
/* relocate name pointers, index referred from start of table */
- for (sym = &(newtab->symbol[0]), i = 0;
- i < newtab->n_symbols; ++sym, ++i) {
+ for (sym = &(newtab->symbol[0]), i = 0; i < newtab->n_symbols; ++sym, ++i) {
if ((unsigned long)sym->name < legal_start || size <= (unsigned long)sym->name) {
- printk("Illegal symbol table! Rejected!\n");
+ printk("Rejecting illegal symbol table\n");
kfree_s(newtab, size);
return -EINVAL;
}
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