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

From: Miquel Raynal

Date: Mon Mar 16 2026 - 12:38:52 EST


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