summaryrefslogtreecommitdiffstats
path: root/kernel/module.c
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2008-05-01 21:15:00 -0500
committerRusty Russell <rusty@rustcorp.com.au>2008-05-01 21:15:00 +1000
commit4e2d92454b2d822fe1d474efabccc2a3806d5f86 (patch)
tree88ff1b8d85d367a9f70f538b326e1d13ec0173d9 /kernel/module.c
parentad9546c9917d44eddc7676b639296d624cee455e (diff)
downloadlinux-4e2d92454b2d822fe1d474efabccc2a3806d5f86.tar.bz2
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. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'kernel/module.c')
-rw-r--r--kernel/module.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/module.c b/kernel/module.c
index 679e4c88ed9e..ee918938518a 100644
--- a/kernel/module.c
+++ b/kernel/module.c
@@ -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) ||