Skip to content

PCI: of_property: Gracefully handle bridges without secondary bus

Nam Cao linux-pci lkml stable 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2PCI: of_property: Fix NULL pointer defererence in of_pci_prop_bus_range()drivers/pci/of_property.c+3 -00 replies
2/2PCI: of_property: Fix NULL pointer defererence in of_pci_prop_intr_map()drivers/pci/of_property.c+3 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] PCI: of_property: Gracefully handle bridges without secondary bus

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(+)
Signature · 1 line
2.39.2