From: Mark Rutland Date: Wed, 19 Dec 2012 11:37:49 +0000 (+0000) Subject: arm: arch_timer: balance device_node refcounting X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2b55d10c46815d9660c0f1bc6044f7019ff384aa;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git arm: arch_timer: balance device_node refcounting When we get the device_node for the arch timer, it's refcount is automatically incremented in of_find_matching_node, but it is never decremented. This patch decrements the refcount on the node after we're finished using it. Reported-by: Will Deacon Signed-off-by: Mark Rutland Acked-by: Santosh Shilimkar Acked-by: Catalin Marinas --- diff --git a/arch/arm/kernel/arch_timer.c b/arch/arm/kernel/arch_timer.c index c8ef20747ee7..6dd73c67d864 100644 --- a/arch/arm/kernel/arch_timer.c +++ b/arch/arm/kernel/arch_timer.c @@ -488,6 +488,8 @@ int __init arch_timer_of_register(void) for (i = PHYS_SECURE_PPI; i < MAX_TIMER_PPI; i++) arch_timer_ppi[i] = irq_of_parse_and_map(np, i); + of_node_put(np); + /* * If no interrupt provided for virtual timer, we'll have to * stick to the physical timer. It'd better be accessible...