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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxx>
> ---
>  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@xxxxxxxxx/


Best regards,
Krzysztof



[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux