Re: [PATCH] soc: bcm: brcmstb: Add of_node_put() in pm-mips

From: Florian Fainelli
Date: Wed Oct 20 2021 - 18:56:14 EST


On Fri, 15 Oct 2021 02:49:23 -0400, Wan Jiabing <wanjiabing@xxxxxxxx> wrote:
> Fix following coccicheck warning:
> ./drivers/soc/bcm/brcmstb/pm/pm-mips.c:404:1-23: WARNING: Function
> for_each_matching_node should have of_node_put() before goto or break
>
> Early exits from for_each_matching_node should decrement the
> node reference counter.
>
> Signed-off-by: Wan Jiabing <wanjiabing@xxxxxxxx>
> ---

Applied to https://github.com/Broadcom/stblinux/commits/drivers/next, thanks!
--
Florian