android_kernel_motorola_sm6375/drivers/of
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Yang Yingliang b10dd3bd14 of: property: decrement node refcount in of_fwnode_get_reference_args()
[ Upstream commit 60d865bd5a9b15a3961eb1c08bd4155682a3c81e ]

In of_fwnode_get_reference_args(), the refcount of of_args.np has
been incremented in the case of successful return from
of_parse_phandle_with_args() or of_parse_phandle_with_fixed_args().

Decrement the refcount if of_args is not returned to the caller of
of_fwnode_get_reference_args().

Fixes: 3e3119d308 ("device property: Introduce fwnode_property_get_reference_args")
Signed-off-by: Yang Yingliang <[email protected]>
Reviewed-by: Sakari Ailus <[email protected]>
Reviewed-by: Frank Rowand <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Rob Herring <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>
2022-12-08 11:23:02 +01:00
..
unittest-data
address.c
base.c of: base: Improve argument length mismatch error 2022-01-27 09:19:51 +01:00
device.c
dynamic.c
fdt.c of: fdt: fix off-by-one error in unflatten_dt_nodes() 2022-09-28 11:03:56 +02:00
fdt_address.c
irq.c
Kconfig
kobj.c
Makefile
of_mdio.c of: mdio: Add of_node_put() when breaking out of for_each_xx 2022-09-28 11:04:06 +02:00
of_net.c
of_numa.c
of_private.h
of_reserved_mem.c
overlay.c of: overlay: do not break notify on NOTIFY_{OK|STOP} 2022-06-14 18:11:34 +02:00
pdt.c
platform.c
property.c of: property: decrement node refcount in of_fwnode_get_reference_args() 2022-12-08 11:23:02 +01:00
resolver.c
unittest.c