From: "Krzysztof Wilczyński" <kw@linux.com>
To: Aleksandr Mishin <amishin@t-argos.ru>
Cc: Jonathan Chocron <jonnyc@amazon.com>,
Lorenzo Pieralisi <lpieralisi@kernel.org>,
Rob Herring <robh@kernel.org>,
Bjorn Helgaas <bhelgaas@google.com>,
linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org,
lvc-project@linuxtesting.org, Bjorn Helgaas <helgaas@kernel.org>
Subject: Re: [PATCH v3] PCI: dwc: al: Check IORESOURCE_BUS existence during PCIe config preparation
Date: Fri, 17 May 2024 20:24:27 +0900 [thread overview]
Message-ID: <20240517112427.GV202520@rocinante> (raw)
In-Reply-To: <20240503125705.46055-1-amishin@t-argos.ru>
Hello,
> If IORESOURCE_BUS is not provided in Device Tree it will be fabricated
> in of_pci_parse_bus_range(). So NULL pointer dereference will not occur.
> But other drivers do this check. So it can be added for code consistency.
>
> Found by Linux Verification Center (linuxtesting.org) with SVACE.
Applied to controller/al, thank you!
[1/1] PCI: dwc: al: Check IORESOURCE_BUS existence during PCIe config preparation
https://git.kernel.org/pci/pci/c/d4f21f188682
Krzysztof
prev parent reply other threads:[~2024-05-17 11:24 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-28 18:01 [PATCH] PCI: dwc: Fix potential NULL dereference Aleksandr Mishin
2024-03-28 18:32 ` Bjorn Helgaas
2024-04-25 9:45 ` [PATCH v2] PCI: dwc: al: " Aleksandr Mishin
2024-05-03 12:57 ` [PATCH v3] PCI: dwc: al: Check IORESOURCE_BUS existence during PCIe config preparation Aleksandr Mishin
2024-05-17 11:24 ` Krzysztof Wilczyński [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=20240517112427.GV202520@rocinante \
--to=kw@linux.com \
--cc=amishin@t-argos.ru \
--cc=bhelgaas@google.com \
--cc=helgaas@kernel.org \
--cc=jonnyc@amazon.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=lpieralisi@kernel.org \
--cc=lvc-project@linuxtesting.org \
--cc=robh@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.