[PATCH 5.15 298/402] riscv: stacktrace: fixed walk_stackframe()