mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
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>
This commit is contained in:
parent
ad9546c991
commit
4e2d92454b
1 changed files with 2 additions and 1 deletions
|
@ -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) ||
|
||||
|
|
Loading…
Reference in a new issue