linux/drivers/of
Lucas Stach 51ed10c4ff of: fix reference counting in of_graph_get_endpoint_by_regs
commit 34276bb062 upstream.

The called of_graph_get_next_endpoint() already decrements the refcount
of the prev node, so it is wrong to do it again in the calling function.

Use the for_each_endpoint_of_node() helper to interate through the
endpoint OF nodes, which already does the right thing and simplifies
the code a bit.

Fixes: 8ccd0d0ca0
(of: add helper for getting endpoint node of specific identifiers)
Reported-by: David Jander <david@protonic.nl>
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Acked-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-09-07 08:32:41 +02:00
..
unittest-data
address.c
base.c of: fix reference counting in of_graph_get_endpoint_by_regs 2016-09-07 08:32:41 +02:00
device.c
dynamic.c of: fix memory leak related to safe_name() 2016-08-20 18:09:25 +02:00
fdt_address.c
fdt.c
irq.c of: irq: fix of_irq_get[_byname]() kernel-doc 2016-07-27 09:47:29 -07:00
Kconfig
Makefile
of_mdio.c
of_mtd.c
of_net.c
of_pci_irq.c
of_pci.c
of_private.h of: fix memory leak related to safe_name() 2016-08-20 18:09:25 +02:00
of_reserved_mem.c
overlay.c
pdt.c
platform.c
resolver.c
unittest.c