From: Greg KH <gregkh@linuxfoundation.org>
To: Chenyuan Mi <cymi20@fudan.edu.cn>
Cc: ilpo.jarvinen@linux.intel.com, andriy.shevchenko@linux.intel.com,
jirislaby@kernel.org, linux-serial@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] serial: 8250_lpss: Fix missing check for return value of pci_get_slot()
Date: Wed, 14 Jun 2023 18:28:42 +0200 [thread overview]
Message-ID: <2023061402-resilient-chafe-3a24@gregkh> (raw)
In-Reply-To: <20230614153226.117768-1-cymi20@fudan.edu.cn>
On Wed, Jun 14, 2023 at 08:32:26AM -0700, Chenyuan Mi wrote:
> The pci_get_slot() function may return NULL, which may
> cause null pointer deference, and most other callsites of
> pci_get_slot() do Null check. Add Null check for return
> value of pci_get_slot().
>
> Found by our static analysis tool.
Please read Documentation/process/researcher-guidelines.rst for how to
do this properly. Until then, we obviously can not take these types of
patches.
greg k-h
prev parent reply other threads:[~2023-06-14 16:29 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-14 15:32 [PATCH] serial: 8250_lpss: Fix missing check for return value of pci_get_slot() Chenyuan Mi
2023-06-14 16:08 ` Andy Shevchenko
2023-06-14 16:28 ` Greg KH [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=2023061402-resilient-chafe-3a24@gregkh \
--to=gregkh@linuxfoundation.org \
--cc=andriy.shevchenko@linux.intel.com \
--cc=cymi20@fudan.edu.cn \
--cc=ilpo.jarvinen@linux.intel.com \
--cc=jirislaby@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-serial@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.