From: Dan Carpenter <dan.carpenter@linaro.org>
To: Steven Rostedt <srostedt@redhat.com>
Cc: linux-trace-kernel@vger.kernel.org
Subject: [bug report] tracing/events: add startup tests for events
Date: Thu, 7 Aug 2025 18:52:56 +0300 [thread overview]
Message-ID: <aJTL2Av9ph7vhQ_U@stanley.mountain> (raw)
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
next reply other threads:[~2025-08-07 15:53 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-07 15:52 Dan Carpenter [this message]
2025-08-13 15:34 ` [bug report] tracing/events: add startup tests for events Steven Rostedt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aJTL2Av9ph7vhQ_U@stanley.mountain \
--to=dan.carpenter@linaro.org \
--cc=linux-trace-kernel@vger.kernel.org \
--cc=srostedt@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox