public inbox for linux-pci@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] PCI: of_property: Gracefully handle bridges without secondary bus
@ 2024-05-31 11:18 Nam Cao
  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
  0 siblings, 2 replies; 3+ messages in thread
From: Nam Cao @ 2024-05-31 11:18 UTC (permalink / raw)
  To: Bjorn Helgaas, Rob Herring, Lizhi Hou, linux-pci, linux-kernel
  Cc: Lukas Wunner, Nam Cao

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-05-31 11:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-31 11:18 [PATCH 0/2] PCI: of_property: Gracefully handle bridges without secondary bus Nam Cao
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox