[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <166272522307.2076816.4288363534230982761.b4-ty@ellerman.id.au>
Date: Fri, 09 Sep 2022 22:07:03 +1000
From: Michael Ellerman <patch-notifications@...erman.id.au>
To: agust@...x.de, paulus@...ba.org, christophe.leroy@...roup.eu,
Liang He <windhl@....com>, maz@...nel.org,
benh@...nel.crashing.org, wangqing@...o.com, mpe@...erman.id.au
Cc: linuxppc-dev@...ts.ozlabs.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] powerpc: platforms: 52xx: Fix refcount leak in media5200.c
On Thu, 16 Jun 2022 22:40:07 +0800, Liang He wrote:
> In media5200_init_irq(), of_find_compatible_node() will return a
> node pointer with refcount incremented. We should use of_node_put()
> in fail path or when it is not used anymore.
>
> Don't worry about 'fpga_np==NULL' as of_node_put() can correctly
> handle it.
>
> [...]
Applied to powerpc/next.
[1/1] powerpc: platforms: 52xx: Fix refcount leak in media5200.c
https://git.kernel.org/powerpc/c/593d7b89c6a2bf7aea2324c94f10ef3c21308418
cheers
Powered by blists - more mailing lists