[PATCH 0/2] MTD fixes for OF node refcounting

Cosmin Tanislav posted 2 patches 3 weeks, 6 days ago
drivers/mtd/parsers/ofpart_core.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
[PATCH 0/2] MTD fixes for OF node refcounting
Posted by Cosmin Tanislav 3 weeks, 6 days ago
This series fixes an issue observed while repeatedly binding / unbinding
the SPI controller driver to which a SPI NOR flash memory is attached,
caused by commit 7cce81df7d26 ("mtd: parsers: ofpart: fix OF node
refcount leak in parse_fixed_partitions()"). See patch 2 for more
details.

Patch 1 is the fix for another theorethical issue I have noticed while
debugging the main issue.

Cosmin Tanislav (2):
  mtd: parsers: ofpart: call of_node_put() only in ofpart_fail path
  mtd: parsers: ofpart: call of_node_get() for dedicated subpartitions

 drivers/mtd/parsers/ofpart_core.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

-- 
2.53.0
Re: [PATCH 0/2] MTD fixes for OF node refcounting
Posted by Miquel Raynal 3 weeks, 1 day ago
On Wed, 11 Mar 2026 17:39:55 +0200, Cosmin Tanislav wrote:
> This series fixes an issue observed while repeatedly binding / unbinding
> the SPI controller driver to which a SPI NOR flash memory is attached,
> caused by commit 7cce81df7d26 ("mtd: parsers: ofpart: fix OF node
> refcount leak in parse_fixed_partitions()"). See patch 2 for more
> details.
> 
> Patch 1 is the fix for another theorethical issue I have noticed while
> debugging the main issue.
> 
> [...]

Applied to mtd/next, thanks!

[1/2] mtd: parsers: ofpart: call of_node_put() only in ofpart_fail path
      commit: 0c87dea1aab86116211cb37387c404c9e9231c39
[2/2] mtd: parsers: ofpart: call of_node_get() for dedicated subpartitions
      commit: e882626c1747653f1f01ea9d12e278e613b11d0f

Patche(s) should be available on mtd/linux.git and will be
part of the next PR (provided that no robot complains by then).

Kind regards,
Miquèl