Skip to content

Commit d3817d0

Browse files
clementlegerAlexandre Ghiti
authored andcommitted
riscv: remove useless pc check in stacktrace handling
Checking for pc to be a kernel text address at this location is useless since pc == handle_exception. Remove this check. [ alex: Fix merge conflict ] Signed-off-by: Clément Léger <[email protected]> Reviewed-by: Alexandre Ghiti <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexandre Ghiti <[email protected]>
1 parent 03dc00a commit d3817d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/riscv/kernel/stacktrace.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ void notrace walk_stackframe(struct task_struct *task, struct pt_regs *regs,
7474
&frame->ra);
7575
if (pc >= (unsigned long)handle_exception &&
7676
pc < (unsigned long)&ret_from_exception_end) {
77-
if (unlikely(!__kernel_text_address(pc) || !fn(arg, pc)))
77+
if (unlikely(!fn(arg, pc)))
7878
break;
7979

8080
pc = ((struct pt_regs *)sp)->epc;

0 commit comments

Comments
 (0)