From a91e489eead0286a860428bc65235276e56073b3 Mon Sep 17 00:00:00 2001 From: Huibin Hong Date: Tue, 2 Nov 2021 06:38:37 +0000 Subject: [PATCH] fiq_debugger_arm64: Fix running bt command causes Oops panic Setting frame.prev_type to STACK_TYPE_UNKNOWN to solve it. prev_type is new for struct stackframe of linux5.10 arm64. Signed-off-by: Huibin Hong Change-Id: I6df1d6b860a79f4e15e3ce40f6471aa1de02f986 --- drivers/staging/android/fiq_debugger/fiq_debugger_arm64.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/android/fiq_debugger/fiq_debugger_arm64.c b/drivers/staging/android/fiq_debugger/fiq_debugger_arm64.c index af4251c07de6..7d1ca391054f 100644 --- a/drivers/staging/android/fiq_debugger/fiq_debugger_arm64.c +++ b/drivers/staging/android/fiq_debugger/fiq_debugger_arm64.c @@ -191,6 +191,7 @@ void fiq_debugger_dump_stacktrace(struct fiq_debugger_output *output, struct stackframe frame; frame.fp = regs->regs[29]; frame.pc = regs->pc; + frame.prev_type = STACK_TYPE_UNKNOWN; output->printf(output, "\n"); walk_stackframe(current, &frame, report_trace, &sts); }