From: Vasily Gorbik Date: Fri, 22 Nov 2019 16:37:50 +0000 (+0100) Subject: s390/test_unwind: require that unwinding ended successfully X-Git-Tag: rel_imx_5.10.35_2.0.0-somdevices.0~3308^2~10 X-Git-Url: https://git.somdevices.com/?a=commitdiff_plain;h=f44fa79b104b56d53d33ae43e69bab98b63d4783;p=linux.git s390/test_unwind: require that unwinding ended successfully Currently unwinder test passes if unwinding results contain unwindme_func2 and unwindme_func1 functions. Now that unwinder reports success upon reaching task pt_regs, check that unwinding ended successfully in every test. Acked-by: Heiko Carstens Signed-off-by: Vasily Gorbik --- diff --git a/arch/s390/lib/test_unwind.c b/arch/s390/lib/test_unwind.c index 5636da941f1f..2839f8cb691d 100644 --- a/arch/s390/lib/test_unwind.c +++ b/arch/s390/lib/test_unwind.c @@ -71,6 +71,10 @@ static noinline int test_unwind(struct task_struct *task, struct pt_regs *regs, } /* Check the results. */ + if (unwind_error(&state)) { + pr_err("unwind error\n"); + ret = -EINVAL; + } if (!seen_func2_func1) { pr_err("unwindme_func2 and unwindme_func1 not found\n"); ret = -EINVAL;