diff options
author | Will Deacon <will@kernel.org> | 2021-10-29 14:24:59 +0300 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2021-10-29 14:24:59 +0300 |
commit | 2bc655ce29422b94fcb4c9710d12664195897e42 (patch) | |
tree | 7f5de5ec76e860b3ebac9a71dac929d0a046ad6d /arch/arm64/kernel/traps.c | |
parent | 082f6b4b6223966567d52fb9eb78a1fc70e95069 (diff) | |
parent | a68773bd32d9b9dea62be99c06502567532f652f (diff) | |
download | linux-2bc655ce29422b94fcb4c9710d12664195897e42.tar.xz |
Merge branch 'for-next/misc' into for-next/core
* for-next/misc:
arm64: Select POSIX_CPU_TIMERS_TASK_WORK
arm64: Document boot requirements for FEAT_SME_FA64
arm64: ftrace: use function_nocfi for _mcount as well
arm64: asm: setup.h: export common variables
arm64/traps: Avoid unnecessary kernel/user pointer conversion
Diffstat (limited to 'arch/arm64/kernel/traps.c')
-rw-r--r-- | arch/arm64/kernel/traps.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm64/kernel/traps.c b/arch/arm64/kernel/traps.c index 5e410d17d9e3..7b21213a570f 100644 --- a/arch/arm64/kernel/traps.c +++ b/arch/arm64/kernel/traps.c @@ -400,11 +400,11 @@ static int call_undef_hook(struct pt_regs *regs) unsigned long flags; u32 instr; int (*fn)(struct pt_regs *regs, u32 instr) = NULL; - void __user *pc = (void __user *)instruction_pointer(regs); + unsigned long pc = instruction_pointer(regs); if (!user_mode(regs)) { __le32 instr_le; - if (get_kernel_nofault(instr_le, (__force __le32 *)pc)) + if (get_kernel_nofault(instr_le, (__le32 *)pc)) goto exit; instr = le32_to_cpu(instr_le); } else if (compat_thumb_mode(regs)) { |