lkml.org 
[lkml]   [2022]   [May]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH] ARM: mstar: Fix refcount leaks
Hi,

Le jeu. 12 mai 2022 à 05:47, Miaoqian Lin <linmq006@gmail.com> a écrit :
>
> of_find_compatible_node() returns a node pointer with refcount
> incremented, we should use of_node_put() on it when done.
> Add missing of_node_put() to avoid refcount leak.
>
> Fixes: 5919eec0f092 ("ARM: mstar: SMP support")
> Fixes: 312b62b6610c ("ARM: mstar: Add machine for MStar/Sigmastar Armv7 SoCs")
> Signed-off-by: Miaoqian Lin <linmq006@gmail.com>

Looks good to me,

Reviewed-by: Romain Perier <romain.perier@gmail.com>

\
 
 \ /
  Last update: 2022-05-18 08:33    [W:0.032 / U:0.812 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site