From: Daniel Bristot de Oliveira <bristot@kernel.org>
To: Wan Jiabing <wanjiabing@vivo.com>
Cc: kael_w@yeah.net, linux-trace-devel@vger.kernel.org,
linux-kernel@vger.kernel.org,
Steven Rostedt <rostedt@goodmis.org>
Subject: Re: [PATCH v2] rtla: add a tag to avoid dereferring a NULL pointer
Date: Fri, 8 Apr 2022 17:03:26 +0200 [thread overview]
Message-ID: <1a9ca671-8578-6352-09b1-ac4c546f4e16@kernel.org> (raw)
In-Reply-To: <20220401123948.69312-1-wanjiabing@vivo.com>
Hi Wan
There is a typo in the subject, and it needs a capital letter after the ':'.
I suggest using something like:
rtla: Avoid record NULL pointer dereference
Do you mind sending a v3?
On 4/1/22 14:39, Wan Jiabing wrote:
> Fix the following null/deref_null.cocci errors:
> ./tools/tracing/rtla/src/osnoise_hist.c:870:31-36: ERROR: record is NULL but dereferenced.
> ./tools/tracing/rtla/src/osnoise_top.c:650:31-36: ERROR: record is NULL but dereferenced.
> ./tools/tracing/rtla/src/timerlat_hist.c:905:31-36: ERROR: record is NULL but dereferenced.
> ./tools/tracing/rtla/src/timerlat_top.c:700:31-36: ERROR: record is NULL but dereferenced.
>
> "record" is NULL before calling osnoise_init_trace_tool.
> Add a tag "out_free" to avoid dereferring a NULL pointer.
>
> Fixes: 51d64c3a1819 ("rtla: Add -e/--event support")
> Signed-off-by: Wan Jiabing <wanjiabing@vivo.com>
Also adding:
Acked-by: Daniel Bristot de Oliveira <bristot@kernel.org>
Thanks,
-- Daniel
prev parent reply other threads:[~2022-04-08 15:49 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-01 12:39 Wan Jiabing
2022-04-08 15:03 ` Daniel Bristot de Oliveira [this message]
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=1a9ca671-8578-6352-09b1-ac4c546f4e16@kernel.org \
--to=bristot@kernel.org \
--cc=kael_w@yeah.net \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-trace-devel@vger.kernel.org \
--cc=rostedt@goodmis.org \
--cc=wanjiabing@vivo.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
all inboxes | Powered by JetHome®