Re: [PATCH v2] mtd: hyperbus: rpc-if: fix an OF node reference leak
From: Miquel Raynal
Date: Tue Nov 17 2026 - 08:37:31 EST
On Fri, 30 Oct 2026 02:11:13 +0800, Yige Jiang wrote:
> rpcif_hb_probe() gets a child-node reference with of_get_next_child().
> The HyperBus core does not consume it, so the driver leaks the
> reference on registration failure and remove.
>
> Put the node on registration failure and after unregistering the
> HyperBus device on remove. Leave hardware initialization failures on
> out_disable_rpm, since no node reference has been acquired there.
>
> [...]
Applied to mtd/next, thanks!
[1/1] mtd: hyperbus: rpc-if: fix an OF node reference leak
commit: c16be34e0c713ddb8824c5f2ce9e3c4a3577dfac
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