android_kernel_motorola_sm6375/drivers/of
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Zijun Hu f15dec32fb of: Fix refcount leakage for OF node returned by __of_get_dma_parent()
commit 5d009e024056ded20c5bb1583146b833b23bbd5a upstream.

__of_get_dma_parent() returns OF device node @args.np, but the node's
refcount is increased twice, by both of_parse_phandle_with_args() and
of_node_get(), so causes refcount leakage for the node.

Fix by directly returning the node got by of_parse_phandle_with_args().

Fixes: f83a6e5dea ("of: address: Add support for the parent DMA bus")
Cc: stable@vger.kernel.org
Signed-off-by: Zijun Hu <quic_zijuhu@quicinc.com>
Link: https://lore.kernel.org/r/20241206-of_core_fix-v1-4-dc28ed56bec3@quicinc.com
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-01-09 13:23:30 +01:00
..
unittest-data of: unittest: add overlay gpio test to catch gpio hog problem 2024-02-23 08:25:09 +01:00
address.c of: Fix refcount leakage for OF node returned by __of_get_dma_parent() 2025-01-09 13:23:30 +01:00
base.c of: Fix error path in of_parse_phandle_with_args_map() 2025-01-09 13:23:30 +01:00
device.c
dynamic.c of: dynamic: Fix of_reconfig_get_state_change() return value documentation 2023-12-13 18:18:11 +01:00
fdt.c of: Add missing 'Return' section in kerneldoc comments 2023-12-13 18:18:11 +01:00
fdt_address.c
irq.c of/irq: Fix using uninitialized variable @addr_len in API of_irq_parse_one() 2025-01-09 13:23:29 +01:00
Kconfig
kobj.c
Makefile
of_mdio.c
of_net.c
of_numa.c
of_private.h
of_reserved_mem.c
overlay.c of: Add missing 'Return' section in kerneldoc comments 2023-12-13 18:18:11 +01:00
pdt.c
platform.c of: Add missing 'Return' section in kerneldoc comments 2023-12-13 18:18:11 +01:00
property.c of: Add missing 'Return' section in kerneldoc comments 2023-12-13 18:18:11 +01:00
resolver.c
unittest.c of: gpio unittest kfree() wrong object 2024-02-23 08:25:15 +01:00