Commit f169f421 authored by Vasily Gorbik's avatar Vasily Gorbik Committed by Heiko Carstens

s390/test_unwind: unify error handling paths

Handle the case of "unwind state reliable but addr is 0" like other error
cases in this function and trigger output of failing stacktrace to aid
debugging.
Signed-off-by: default avatarVasily Gorbik <gor@linux.ibm.com>
Signed-off-by: default avatarHeiko Carstens <hca@linux.ibm.com>
parent 4dd4269e
...@@ -64,8 +64,8 @@ static noinline int test_unwind(struct task_struct *task, struct pt_regs *regs, ...@@ -64,8 +64,8 @@ static noinline int test_unwind(struct task_struct *task, struct pt_regs *regs,
break; break;
if (state.reliable && !addr) { if (state.reliable && !addr) {
pr_err("unwind state reliable but addr is 0\n"); pr_err("unwind state reliable but addr is 0\n");
kfree(bt); ret = -EINVAL;
return -EINVAL; break;
} }
sprint_symbol(sym, addr); sprint_symbol(sym, addr);
if (bt_pos < BT_BUF_SIZE) { if (bt_pos < BT_BUF_SIZE) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment