[PATCH v2] arm/mach-omap2: Fix refcount leak bugs

Krzysztof Kozlowski krzk at kernel.org
Wed Jun 22 01:53:33 PDT 2022


On 20/06/2022 17:54, Liang He wrote:
> We need to add of_node_put() to keep refcount balance for of_find_xxx()
> which will return a node pointer with refcount incremented.
> 
> Signed-off-by: Liang He <windhl at 126.com>
> ---
>  changelog:
> 
>  v2:(1) we find several new leak bugs
>     (2) we merge all mach-omap2 related bugs in to one commit
> 
>  v1: we send a patch for each missing of_node_put bug 
> 
> 
> 
>  arch/arm/mach-omap2/display.c      | 1 +
>  arch/arm/mach-omap2/omap4-common.c | 1 +
>  arch/arm/mach-omap2/omap_hwmod.c   | 6 ++++++
>  arch/arm/mach-omap2/pdata-quirks.c | 2 ++
>  4 files changed, 10 insertions(+)

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