Re: [PATCH v2] mips/pic32/pic32mzda: Fix refcount leak bugs

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

 



On Sun, Jun 19, 2022 at 12:54:27PM +0800, Liang He wrote:
> of_find_matching_node(), of_find_compatible_node() and
> of_find_node_by_path() will return node pointers with refcout
> incremented. We should call of_node_put() when they are not
> used anymore.
> 
> Signed-off-by: Liang He <windhl@xxxxxxx>
> ---
>  changelog: 
>  
>  v2: (1) merge pic32/pic32mzda bugs into one patch
>      (2) fix leak bug related to of_find_node_by_path.
>  v1: use two patch for intit.c and time.c
> 
>  arch/mips/pic32/pic32mzda/init.c | 7 ++++++-
>  arch/mips/pic32/pic32mzda/time.c | 3 +++
>  2 files changed, 9 insertions(+), 1 deletion(-)

applied to mips-fixes.

Thomas.

-- 
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
good idea.                                                [ RFC1925, 2.3 ]



[Index of Archives]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux