[PATCH] soc: bcm: brcmstb: Add of_node_put() in pm-mips
Florian Fainelli
f.fainelli at gmail.com
Wed Oct 20 15:56:09 PDT 2021
On Fri, 15 Oct 2021 02:49:23 -0400, Wan Jiabing <wanjiabing at vivo.com> 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 at vivo.com>
> ---
Applied to https://github.com/Broadcom/stblinux/commits/drivers/next, thanks!
--
Florian
More information about the linux-arm-kernel
mailing list