public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Nam Cao <namcao@linutronix.de>
To: Bjorn Helgaas <bhelgaas@google.com>,
	Rob Herring <robh@kernel.org>, Lizhi Hou <lizhi.hou@amd.com>,
	linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org
Cc: Lukas Wunner <lukas@wunner.de>, Nam Cao <namcao@linutronix.de>
Subject: [PATCH 0/2] PCI: of_property: Gracefully handle bridges without secondary bus
Date: Fri, 31 May 2024 13:18:58 +0200	[thread overview]
Message-ID: <cover.1717154083.git.namcao@linutronix.de> (raw)

Hi,

Some functions in of_property.c assume that bridges have subordinate bus.
This may not be true if we run out of bus number.

This series adds safety check in case bridges have no subordinate bus.

Nam Cao (2):
  PCI: of_property: Fix NULL pointer defererence in
    of_pci_prop_bus_range()
  PCI: of_property: Fix NULL pointer defererence in
    of_pci_prop_intr_map()

 drivers/pci/of_property.c | 6 ++++++
 1 file changed, 6 insertions(+)

-- 
2.39.2


             reply	other threads:[~2024-05-31 11:19 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-31 11:18 Nam Cao [this message]
2024-05-31 11:18 ` [PATCH 1/2] PCI: of_property: Fix NULL pointer defererence in of_pci_prop_bus_range() Nam Cao
2024-05-31 11:19 ` [PATCH 2/2] PCI: of_property: Fix NULL pointer defererence in of_pci_prop_intr_map() Nam Cao

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=cover.1717154083.git.namcao@linutronix.de \
    --to=namcao@linutronix.de \
    --cc=bhelgaas@google.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pci@vger.kernel.org \
    --cc=lizhi.hou@amd.com \
    --cc=lukas@wunner.de \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox