MIPS: init module specific mips_hi16_list to NULL
PATCH 1/1 MIPS: init module specific mips_hi16_list to NULL
MIPS: init module specific mips_hi16_list to NULL
mips_hi16_list was moved from global to mod_arch_specific. While global, it was bss initialized automatically, when moved to mod_arch_specific, we have to do the zero initialization.
Signed-off-by Tony Wu <[email protected]>
--- arch/mips/kernel/module.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
arch/mips/kernel/module.c +1 -0
@@ -276,6 +276,7 @@ int apply_relocate(Elf_Shdr *sechdrs, const char *strtab,pr_debug ("Applying relocate section %u to %u\n" , relsec, sechdrs[relsec].sh_info); + me->arch.r_mips_hi16_list =NULL ;for (i =0 ; i < sechdrs[relsec].sh_size /sizeof (*rel); i++) {/* This is where to make the change */ location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr
Signature · 1 line
1.7.4.4
Quoted 7 lines · Tony Wu
MIPS: init module specific
mips_hi16_listto NULL
mips_hi16_listwas moved from global tomod_arch_specific. While global, it was bss initialized automatically, when moved tomod_arch_specific, we have to do the zero initialization.Signed-off-by Tony Wu <[email protected]>
Hi Tony,
can you reference the offending commit that caused the regression inside the patches description please ...
John