[PATCH 6.1 420/473] riscv: stacktrace: fixed walk_stackframe()