Re: [PATCH] PCI: faraday: add missing of_node_put()
From: Linus Walleij
Date: Tue Jun 26 2018 - 03:22:07 EST
On Sat, Jun 23, 2018 at 5:16 PM Nicholas Mc Guire <hofrat@xxxxxxxxx> wrote:
> The call to of_get_next_child() returns a node pointer with refcount
> incremented thus it must be explicitly decremented here in the error
> path and after the last usage.
>
> Signed-off-by: Nicholas Mc Guire <hofrat@xxxxxxxxx>
> Fixes: commit d3c68e0a7e34 ("PCI: faraday: Add Faraday Technology FTPCI100 PCI Host Bridge driver")
Reviewed-by: Linus Walleij <linus.walleij@xxxxxxxxxx>
Yours,
Linus Walleij