Re: [patch 10/15] timers: Silently ignore timers with a NULL function

From
Thomas Gleixner <hidden>
Date
2022-11-21 21:47:02
Also in
lkml, netdev
Reply to
Steven Rostedt, 2022-11-21
On Mon, Nov 21 2022 at 16:35, Steven Rostedt wrote:
On Tue, 15 Nov 2022 21:28:49 +0100 (CET)
Thomas Gleixner [off-list ref] wrote:
quoted
@@ -1532,6 +1573,12 @@ static void expire_timers(struct timer_b
 
 		fn = timer->function;
 
+		if (WARN_ON_ONCE(!fn)) {
+			/* Should never happen. Emphasis on should! */
+			base->running_timer = NULL;
+			return;
Why return and not continue?

Wont this drop the other timers in the queue?
Duh. Yes. Thanks for catching that!
Thread (39 messages) 39 messages, 6 authors, last reply 2022-11-22
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help