diff options
Diffstat (limited to 'arch/arm64/kernel/module.c')
-rw-r--r-- | arch/arm64/kernel/module.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm64/kernel/module.c b/arch/arm64/kernel/module.c index f9d824947c34..719fde8dcc19 100644 --- a/arch/arm64/kernel/module.c +++ b/arch/arm64/kernel/module.c | |||
@@ -203,6 +203,7 @@ static int reloc_insn_adrp(struct module *mod, __le32 *place, u64 val) | |||
203 | u32 insn; | 203 | u32 insn; |
204 | 204 | ||
205 | if (!IS_ENABLED(CONFIG_ARM64_ERRATUM_843419) || | 205 | if (!IS_ENABLED(CONFIG_ARM64_ERRATUM_843419) || |
206 | !cpus_have_const_cap(ARM64_WORKAROUND_843419) || | ||
206 | ((u64)place & 0xfff) < 0xff8) | 207 | ((u64)place & 0xfff) < 0xff8) |
207 | return reloc_insn_imm(RELOC_OP_PAGE, place, val, 12, 21, | 208 | return reloc_insn_imm(RELOC_OP_PAGE, place, val, 12, 21, |
208 | AARCH64_INSN_IMM_ADR); | 209 | AARCH64_INSN_IMM_ADR); |