[PATCH] arm/mach: Hold reference returned by of_find_xxx APIs

Krzysztof Kozlowski krzk at kernel.org
Wed Jun 22 01:51:32 PDT 2022


On 21/06/2022 11:19, Liang He wrote:
> In highbank_init_irq(), tegra_init_irq() and omap4_cpcap_init(),
> we should hold the reference returned by of_find_xxx APIs and
> use it to call of_node_put() for refcount balance.
> 
> Signed-off-by: Liang He <windhl at 126.com>
> ---
>  arch/arm/mach-highbank/highbank.c | 6 +++++-
>  arch/arm/mach-omap2/pmic-cpcap.c  | 5 ++++-
>  arch/arm/mach-tegra/irq.c         | 6 +++++-
>  3 files changed, 14 insertions(+), 3 deletions(-)

Before applying the patch please check it carefully. Previous evidence
[1] suggests that not it was not even compiled.

[1] https://lore.kernel.org/all/202206221602.odN70SHs-lkp@intel.com/

Best regards,
Krzysztof



More information about the linux-arm-kernel mailing list