diff options
author | Rusty Russell | 2008-05-02 04:15:00 +0200 |
---|---|---|
committer | Rusty Russell | 2008-05-01 13:15:00 +0200 |
commit | 4e2d92454b2d822fe1d474efabccc2a3806d5f86 (patch) | |
tree | 88ff1b8d85d367a9f70f538b326e1d13ec0173d9 /kernel/module.c | |
parent | module: neaten __find_symbol, rename to find_symbol (diff) | |
download | kernel-qcow2-linux-4e2d92454b2d822fe1d474efabccc2a3806d5f86.tar.gz kernel-qcow2-linux-4e2d92454b2d822fe1d474efabccc2a3806d5f86.tar.xz kernel-qcow2-linux-4e2d92454b2d822fe1d474efabccc2a3806d5f86.zip |
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.c | 3 |
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) || |