mac80211: correct legacy rates check in ieee80211_calc_rx_airtime
[platform/kernel/linux-rpi.git] / lib / ubsan.c
index bdc380f..60c7099 100644 (file)
@@ -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)