[PATCH 0/2] MTD fixes for OF node refcounting
From: Cosmin Tanislav
Date: Wed Mar 11 2026 - 11:41:07 EST
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