linux-uconsole/drivers/of
Dan Carpenter 219ecf84fb of: Fix a refcounting bug in __of_attach_node_sysfs()
[ Upstream commit 8a325dd06f ]

The problem in this code is that if kobject_add() fails, then it should
call of_node_put(np) to drop the reference count.  I've actually moved
the of_node_get(np) later in the function to avoid needing to do clean
up.

Fixes: 5b2c2f5a0e ("of: overlay: add missing of_node_get() in __of_attach_node_sysfs")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-06-25 15:33:00 +02:00
..
unittest-data of/unittest: Fix I2C bus unit-address error 2019-11-20 18:47:00 +01:00
address.c of: Add OF_DMA_DEFAULT_COHERENT & select it on powerpc 2020-02-11 04:34:03 -08:00
base.c of: make PowerMac cache node search conditional on CONFIG_PPC_PMAC 2019-11-20 18:46:06 +01:00
device.c of: Convert to using %pOFn instead of device_node.name 2019-02-06 17:30:15 +01:00
dynamic.c of: overlay: set node fields from properties when add new overlay node 2019-06-09 09:17:24 +02:00
fdt.c
fdt_address.c
irq.c
Kconfig of: Add OF_DMA_DEFAULT_COHERENT & select it on powerpc 2020-02-11 04:34:03 -08:00
kobj.c of: Fix a refcounting bug in __of_attach_node_sysfs() 2020-06-25 15:33:00 +02:00
Makefile
of_mdio.c drivers/of/of_mdio.c:fix of_mdiobus_register() 2020-04-02 15:28:14 +02:00
of_net.c
of_numa.c of: Convert to using %pOFn instead of device_node.name 2019-02-06 17:30:15 +01:00
of_private.h of: __of_detach_node() - remove node from phandle cache 2019-01-13 09:51:10 +01:00
of_reserved_mem.c
overlay.c of: overlay: kmemleak in dup_and_fixup_symbol_prop() 2020-04-23 10:30:14 +02:00
pdt.c
platform.c of: Convert to using %pOFn instead of device_node.name 2019-02-06 17:30:15 +01:00
property.c OF: properties: add missing of_node_put 2019-01-22 21:40:33 +01:00
resolver.c
unittest.c of: unittest: kmemleak in of_unittest_overlay_high_level() 2020-04-23 10:30:14 +02:00