[PATCH 5.10 240/317] riscv: stacktrace: fixed walk_stackframe()