* [PATCH v1] ARM: setup: Drop reference to device tree root node
@ 2026-08-01 23:19 Yuho Choi
0 siblings, 0 replies; only message in thread
From: Yuho Choi @ 2026-08-01 23:19 UTC (permalink / raw)
To: linux; +Cc: linux-arm-kernel, linux-kernel, Yuho Choi
init_machine_late() obtains the root device tree node with
of_find_node_by_path() but does not release the reference after reading
the serial-number property. Drop the reference once the property lookup
is complete.
Fixes: 3f599875e520 ("ARM: 8355/1: arch: Show the serial number from devicetree in cpuinfo")
Signed-off-by: Yuho Choi <dbgh9129@gmail.com>
---
arch/arm/kernel/setup.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm/kernel/setup.c b/arch/arm/kernel/setup.c
index 0bfd66c7ada0..2a179aeb637b 100644
--- a/arch/arm/kernel/setup.c
+++ b/arch/arm/kernel/setup.c
@@ -962,6 +962,7 @@ static int __init init_machine_late(void)
&system_serial);
if (ret)
system_serial = NULL;
+ of_node_put(root);
}
if (!system_serial)
--
2.43.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-08-01 23:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-01 23:19 [PATCH v1] ARM: setup: Drop reference to device tree root node Yuho Choi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox