X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=lib%2Fubsan.c;h=60c7099857a05bcabaf9c2c142ff7afe7d5b4976;hb=refs%2Fheads%2Faccepted%2Ftizen_8.0_unified;hp=bdc380ff5d5c712db353f43102e9563594b44a6b;hpb=0aa2516017123a7c35a2c0c35c4dc7727579b8a3;p=platform%2Fkernel%2Flinux-rpi.git diff --git a/lib/ubsan.c b/lib/ubsan.c index bdc380f..60c7099 100644 --- a/lib/ubsan.c +++ b/lib/ubsan.c @@ -154,16 +154,7 @@ static void ubsan_epilogue(void) current->in_ubsan--; - if (panic_on_warn) { - /* - * This thread may hit another WARN() in the panic path. - * Resetting this prevents additional WARN() from panicking the - * system on this thread. Other threads are blocked by the - * panic_mutex in panic(). - */ - panic_on_warn = 0; - panic("panic_on_warn set ...\n"); - } + check_panic_on_warn("UBSAN"); } void __ubsan_handle_divrem_overflow(void *_data, void *lhs, void *rhs)