arch: riscv: check esf before calling z_riscv_unwind_stack
Make sure that esf is not NULL before calling
z_riscv_unwind_stack to prevent NULL pointer dereferencing.
Signed-off-by:
Yong Cong Sin <ycsin@meta.com>
Loading
Please sign in to comment