Re: [PATCH] ARM: ux500: add missing of_node_put()

From: Linus Walleij
Date: Tue Apr 16 2019 - 07:49:44 EST


On Sat, Apr 13, 2019 at 9:20 AM Nicholas Mc Guire <hofrat@xxxxxxxxx> wrote:

> of_find_compatible_node() returns a pointer with refcount incremented
> so both in the error path as well as after usage in soc_info_populate()
> respectively actually b8500_read_soc_id() an explicit of_node_put is
> needed to release backupram.
>
> Signed-off-by: Nicholas Mc Guire <hofrat@xxxxxxxxx>
> Fixes: commit 18a992787896 ("ARM: ux500: move soc_id driver to drivers/soc")

Patch applied to my Ux500 tree with Ulf's ACK.

Yours,
Linus Walleij