[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <175690585428.2761740.13323923312367543247.b4-ty@kernel.org>
Date: Wed, 03 Sep 2025 14:24:14 +0100
From: Lee Jones <lee@...nel.org>
To: Lee Jones <lee@...nel.org>,
Bastien Curutchet <bastien.curutchet@...tlin.com>
Cc: Thomas Petazzoni <thomas.petazzoni@...tlin.com>,
Miquèl Raynal <miquel.raynal@...tlin.com>,
Cheng Ming Lin <linchengming884@...il.com>,
Cheng Ming Lin <chengminglin@...c.com.tw>, linux-kernel@...r.kernel.org
Subject: Re: (subset) [PATCH] mfd: core: Increment of_node's refcount
before linking it to the platform device
On Wed, 20 Aug 2025 16:21:13 +0200, Bastien Curutchet wrote:
> When an MFD device is added, a platform_device is allocated. If this
> device is linked to a DT description, the corresponding OF node is linked
> to the new platform device but the OF node's refcount isn't incremented.
> As of_node_put() is called during the platform device release, it leads
> to a refcount underflow.
>
> Call of_node_get() to increment the OF node's refcount when the node is
> linked to the newly created platform device.
>
> [...]
Applied, thanks!
[1/1] mfd: core: Increment of_node's refcount before linking it to the platform device
commit: 5fb7a985997b56eb600a0accfb3b54c05687e7ea
--
Lee Jones [李琼斯]
Powered by blists - more mailing lists