From: Greg KH <gregkh@linuxfoundation.org>
To: Dmitry Antipov <dmantipov@yandex.ru>
Cc: Michael Jamet <michael.jamet@intel.com>,
linux-usb@vger.kernel.org, lvc-project@linuxtesting.org
Subject: Re: [PATCH] thunderbolt: handle possible NULL pointer from get_device()
Date: Fri, 9 Jun 2023 10:20:14 +0200 [thread overview]
Message-ID: <2023060939-undead-nuptials-3fc1@gregkh> (raw)
In-Reply-To: <d4ce3fc8-fdc7-109e-f8d6-d1de71639c5e@yandex.ru>
On Fri, Jun 09, 2023 at 11:05:59AM +0300, Dmitry Antipov wrote:
> On 6/9/23 10:46, Greg KH wrote:
>
> > Again, how did you test this?
>
> Did you look at the patch header? For that particular case, the static
> analysis tool complains that the value returned by get_device() is most
> likely should be checked just because it is checked on a lot of other
> code paths. Usually it may be a good precaution to handle the very rare
> and unexpected errors; again, if you're sure that this is not the case,
> just disregard it.
Just because a static tool said "this might be wrong" does not mean you
do not need to actually test your change or do some work to verify that
it is a sane change at all.
So far I have seen more and more false-positives from this "tool" of
your group that I am very inclined to just tell all kernel maintainers
to ignore them for a very long time as you are not following the
documented rules for such patches as outlined in
Documentation/process/researcher-guidelines.rst
Please read that and fix your tool, and your submission process, I've
said this many times already.
greg k-h
next prev parent reply other threads:[~2023-06-09 8:22 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-09 6:16 [PATCH] thunderbolt: handle possible NULL pointer from get_device() Dmitry Antipov
2023-06-09 6:30 ` Greg KH
2023-06-09 7:15 ` Dmitry Antipov
2023-06-09 7:46 ` Greg KH
2023-06-09 8:05 ` Dmitry Antipov
2023-06-09 8:20 ` Greg KH [this message]
2023-06-09 9:19 ` Dmitry Antipov
2023-06-09 9:30 ` Greg KH
2023-06-09 8:32 ` [lvc-project] " Alexey Khoroshilov
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=2023060939-undead-nuptials-3fc1@gregkh \
--to=gregkh@linuxfoundation.org \
--cc=dmantipov@yandex.ru \
--cc=linux-usb@vger.kernel.org \
--cc=lvc-project@linuxtesting.org \
--cc=michael.jamet@intel.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