diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2008-05-01 22:15:00 -0400 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2008-05-01 07:15:00 -0400 |
commit | 4e2d92454b2d822fe1d474efabccc2a3806d5f86 (patch) | |
tree | 88ff1b8d85d367a9f70f538b326e1d13ec0173d9 /kernel/module.c | |
parent | ad9546c9917d44eddc7676b639296d624cee455e (diff) |
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, | |||
1996 | mod->unused_crcs = (void *)sechdrs[unusedcrcindex].sh_addr; | 1996 | mod->unused_crcs = (void *)sechdrs[unusedcrcindex].sh_addr; |
1997 | mod->unused_gpl_syms = (void *)sechdrs[unusedgplindex].sh_addr; | 1997 | mod->unused_gpl_syms = (void *)sechdrs[unusedgplindex].sh_addr; |
1998 | if (unusedgplcrcindex) | 1998 | if (unusedgplcrcindex) |
1999 | mod->unused_crcs = (void *)sechdrs[unusedgplcrcindex].sh_addr; | 1999 | mod->unused_gpl_crcs |
2000 | = (void *)sechdrs[unusedgplcrcindex].sh_addr; | ||
2000 | 2001 | ||
2001 | #ifdef CONFIG_MODVERSIONS | 2002 | #ifdef CONFIG_MODVERSIONS |
2002 | if ((mod->num_syms && !crcindex) || | 2003 | if ((mod->num_syms && !crcindex) || |