[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <33458feb-0a05-4714-a7a3-08a9880891d3@linaro.org>
Date: Mon, 4 Nov 2024 15:02:29 +0100
From: Daniel Lezcano <daniel.lezcano@...aro.org>
To: Javier Carrasco <javier.carrasco.cruz@...il.com>,
Thomas Gleixner <tglx@...utronix.de>, Tony Lindgren <tony@...mide.com>
Cc: linux-kernel@...r.kernel.org
Subject: Re: [PATCH v3] clocksource/drivers/timer-ti-dm: fix child node
refcount handling
On 31/10/2024 13:54, Javier Carrasco wrote:
> of_find_compatible_node() increments the node's refcount, and it must be
> decremented again with a call to of_node_put() when the pointer is no
> longer required to avoid leaking the resource.
>
> Instead of adding the missing calls to of_node_put() in all execution
> paths, use the cleanup attribute for 'arm_timer' by means of the
> __free() macro, which automatically calls of_node_put() when the
> variable goes out of scope.
>
> Fixes: 25de4ce5ed02 ("clocksource/drivers/timer-ti-dm: Handle dra7 timer wrap errata i940")
> Signed-off-by: Javier Carrasco <javier.carrasco.cruz@...il.com>
> ---
Applied, thanks
--
<http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs
Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog
Powered by blists - more mailing lists