public inbox for linux-trace-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [bug report] tracing/events: add startup tests for events
@ 2025-08-07 15:52 Dan Carpenter
  2025-08-13 15:34 ` Steven Rostedt
  0 siblings, 1 reply; 2+ messages in thread
From: Dan Carpenter @ 2025-08-07 15:52 UTC (permalink / raw)
  To: Steven Rostedt; +Cc: linux-trace-kernel

Hello Steven Rostedt,

Commit e6187007d6c3 ("tracing/events: add startup tests for events")
from Apr 15, 2009 (linux-next), leads to the following Smatch static
checker warning:

	kernel/trace/trace_events.c:4704 event_test_stuff()
	error: 'test_thread' dereferencing possible ERR_PTR()

kernel/trace/trace_events.c
    4698 static __init void event_test_stuff(void)
    4699 {
    4700         struct task_struct *test_thread;
    4701 
    4702         test_thread = kthread_run(event_test_thread, NULL, "test-events");
    4703         msleep(1);
--> 4704         kthread_stop(test_thread);

Check for if (!IS_ERR(test_thread)) ?

    4705 }

regards,
dan carpenter

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-08-13 15:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-07 15:52 [bug report] tracing/events: add startup tests for events Dan Carpenter
2025-08-13 15:34 ` Steven Rostedt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox