Skip to contentSkip to conversation

module: set unused_gpl_crcs instead of overwriting unused_crcs

PATCH New Rusty Russell 1 participant 1 message Apr 24, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 4/6 module: set unused_gpl_crcs instead of overwriting unused_crcs

Obvious typo, but I don't know of any modules with unused GPL exports, and then it would take someone noticing that the version shouldn't have matched in a dependent module.

---
 kernel/module.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
kernel/module.c +2 -1
diff -r 257476cdfb79 kernel/module.c
@@ -1997,7 +1997,8 @@ static struct module *load_module(void _
 		mod->unused_crcs = (void *)sechdrs[unusedcrcindex].sh_addr;
 	mod->unused_gpl_syms = (void *)sechdrs[unusedgplindex].sh_addr;
 	if (unusedgplcrcindex)
-		mod->unused_crcs = (void *)sechdrs[unusedgplcrcindex].sh_addr;
+		mod->unused_gpl_crcs
+			= (void *)sechdrs[unusedgplcrcindex].sh_addr;
 
 #ifdef CONFIG_MODVERSIONS
 	if ((mod->num_syms && !crcindex) ||