Skip to content

PCI: rcar: Fix of_find_matching_node() reference leak

Bjorn Helgaas linux-pci linux-renesas-soc lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2PCI: rcar: Add dev struct for of_device_get_match_data()drivers/pci/controller/pcie-rcar-host.c+33 -200 replies
2/2PCI: rcar: Resolve of_find_matching_node() reference leakdrivers/pci/controller/pcie-rcar-host.c+27 -332 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: rcar: Fix of_find_matching_node() reference leak

From: Bjorn Helgaas <[email protected]>

Alternate proposal for Liang's patch [1].

This is a bulkier fix, but removes the redundant
rcar_pcie_abort_handler_of_match[] table.

It also simplifies the unusual device_initcall()/builtin_platform_driver() construct, which seems unnecessary as far as I can tell.

Compile-tested only.

[1] https://lore.kernel.org/r/[email protected]

Bjorn Helgaas (2):
PCI: rcar: Add dev struct for of_device_get_match_data()
PCI: rcar: Resolve of_find_matching_node() reference leak

 drivers/pci/controller/pcie-rcar-host.c | 113 +++++++++++++-----------
 1 file changed, 60 insertions(+), 53 deletions(-)
Signature · 1 line
2.25.1