diff --git a/[refs] b/[refs] index 01c2e7381d14..5bd31b7ca2d8 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 41370d3b5ec6401c5cf0df82297ed989c03a64bd +refs/heads/master: 8ea80ca4f583e377c902811d42626ccfce16913f diff --git a/trunk/scripts/mod/modpost.c b/trunk/scripts/mod/modpost.c index a7360c379cba..eeaf57476820 100644 --- a/trunk/scripts/mod/modpost.c +++ b/trunk/scripts/mod/modpost.c @@ -576,11 +576,11 @@ static void check_sec_ref(struct module *mod, const char *modname, r.r_offset = TO_NATIVE(rela->r_offset); r.r_info = TO_NATIVE(rela->r_info); sym = elf->symtab_start + ELF_R_SYM(r.r_info); - secname = secstrings + sechdrs[sym->st_shndx].sh_name; /* Skip special sections */ if (sym->st_shndx >= SHN_LORESERVE) continue; + secname = secstrings + sechdrs[sym->st_shndx].sh_name; if (section(secname)) warn_sec_mismatch(modname, name, elf, sym, r); }