From dabfc65124016e21b7740d3751c4012038f57ead Mon Sep 17 00:00:00 2001 From: David Sterba Date: Tue, 4 Oct 2016 19:02:37 +0200 Subject: [PATCH] btrfs-progs: kerncompat: call abort at the end of assert_trace The assert* helpers should not exit normally, mimick the behaviour of the std library assert. Signed-off-by: David Sterba --- kerncompat.h | 1 + 1 file changed, 1 insertion(+) diff --git a/kerncompat.h b/kerncompat.h index 26d3cb7..0cd85dc 100644 --- a/kerncompat.h +++ b/kerncompat.h @@ -91,6 +91,7 @@ static inline void assert_trace(const char *assertion, const char *filename, fprintf(stderr, "%s:%d: %s: Assertion failed, value %d.\n", filename, line, func, val); print_trace(); + abort(); exit(1); } -- 2.7.4