Skip to content

Commit f169f42

Browse files
Vasily Gorbikhcahca
authored andcommitted
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: Vasily Gorbik <gor@linux.ibm.com> Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
1 parent 4dd4269 commit f169f42

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

arch/s390/lib/test_unwind.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ static noinline int test_unwind(struct task_struct *task, struct pt_regs *regs,
6464
break;
6565
if (state.reliable && !addr) {
6666
pr_err("unwind state reliable but addr is 0\n");
67-
kfree(bt);
68-
return -EINVAL;
67+
ret = -EINVAL;
68+
break;
6969
}
7070
sprint_symbol(sym, addr);
7171
if (bt_pos < BT_BUF_SIZE) {

0 commit comments

Comments
 (0)