WSL2-Linux-Kernel/drivers/of
Niklas Söderlund 3314c6bdd2 device property: preserve usecount for node passed to of_fwnode_graph_get_port_parent()
Using CONFIG_OF_DYNAMIC=y uncovered an imbalance in the usecount of the
node being passed to of_fwnode_graph_get_port_parent(). Preserve the
usecount by using of_get_parent() instead of of_get_next_parent() which
don't decrement the usecount of the node passed to it.

Fixes: 3b27d00e7b ("device property: Move fwnode graph ops to firmware specific locations")
Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Rob Herring <robh@kernel.org>
2017-10-12 12:26:14 -05:00
..
unittest-data
Kconfig
Makefile
address.c
base.c
device.c
dynamic.c
fdt.c
fdt_address.c
irq.c
of_mdio.c
of_net.c
of_numa.c
of_pci.c
of_pci_irq.c
of_private.h
of_reserved_mem.c
overlay.c
pdt.c
platform.c
property.c
resolver.c
unittest.c