[PATCH] powerpc/pasemi: Use of_root in pas_pci_init()

Michael Ellerman patch-notifications at ellerman.id.au
Fri Sep 23 21:15:01 AEST 2022


On Tue, 6 Sep 2022 11:03:13 +1000, Michael Ellerman wrote:
> Currently in pas_pci_init() a reference to the root node is leaked due
> to a missing of_node_put(). Instead just use of_root directly.
> 
> Note that converting to of_find_compatible_node(NULL, ...) would
> not be entirely equivalent, because that would check the compatible
> property of the root node, whereas using of_root skips checking the root
> node and start the search at the first child of the root.
> 
> [...]

Applied to powerpc/next.

[1/1] powerpc/pasemi: Use of_root in pas_pci_init()
      https://git.kernel.org/powerpc/c/c28c2d4abdf95655001992c4f52dc243ba00cac3

cheers


More information about the Linuxppc-dev mailing list