Skip to contentSkip to conversation

Fix for module.c in current linus-2.5 BK

PATCH New Art Haas 1 participant 1 message Apr 2, 2003

lore
Share & tools
lore

Art Haas

author
#0 lore raw

PATCH 1/1 Fix for module.c in current linus-2.5 BK

Hi.

It looks like the problem is a missing "k". The field "num_syms" is only defined if CONFIG_KALLSYMS is defined.

Art Haas

===== kernel/module.c 1.72 vs edited =====

kernel/module.c +1 -1
@@ -1273,7 +1273,7 @@
 		goto cleanup;
 
 	/* Set up EXPORTed & EXPORT_GPLed symbols (section 0 is 0 length) */
-	mod->num_syms = sechdrs[exportindex].sh_size / sizeof(*mod->syms);
+	mod->num_ksyms = sechdrs[exportindex].sh_size / sizeof(*mod->syms);
 	mod->syms = (void *)sechdrs[exportindex].sh_addr;
 	if (crcindex)
 		mod->crcs = (void *)sechdrs[crcindex].sh_addr;
Signature · 4 lines
To announce that there must be no criticism of the President, or that we
are to stand by the President, right or wrong, is not only unpatriotic
and servile, but is morally treasonable to the American public.
 -- Theodore Roosevelt, Kansas City Star, 1918