]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
module: set unused_gpl_crcs instead of overwriting unused_crcs
authorRusty Russell <rusty@rustcorp.com.au>
Fri, 2 May 2008 02:15:00 +0000 (21:15 -0500)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 1 May 2008 11:15:00 +0000 (21:15 +1000)
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.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
kernel/module.c

index 679e4c88ed9e4ef6d51a6facca20db9b467693a8..ee918938518ad49a12d0eb3569219dbfedd60c26 100644 (file)
@@ -1996,7 +1996,8 @@ static struct module *load_module(void __user *umod,
                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) ||