kernel: fq_codel match flows_cnt to limit sizing
[openwrt/openwrt.git] / target / linux / generic / patches-4.4 / 310-arm_module_unresolved_weak_sym.patch
1 --- a/arch/arm/kernel/module.c
2 +++ b/arch/arm/kernel/module.c
3 @@ -88,6 +88,10 @@ apply_relocate(Elf32_Shdr *sechdrs, cons
4 return -ENOEXEC;
5 }
6
7 + if ((IS_ERR_VALUE(sym->st_value) || !sym->st_value) &&
8 + ELF_ST_BIND(sym->st_info) == STB_WEAK)
9 + continue;
10 +
11 loc = dstsec->sh_addr + rel->r_offset;
12
13 switch (ELF32_R_TYPE(rel->r_info)) {