Re: [PATCH] i2c: fsi: Fix a potential leak in fsi_i2c_probe()
Andi Shyti <[email protected]>
| Newsgroups | org.ozlabs.lists.openbmc,org.kernel.vger.kernel-janitors,org.kernel.vger.linux-i2c,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
Hi Christophe,
On Sun, Mar 01, 2026 at 05:21:01PM +0100, Christophe JAILLET wrote:
> In the commit in Fixes:, when the code has been updated to use an explicit
> for loop, instead of for_each_available_child_of_node(), the assumption
> that a reference to a device_node structure would be released at each
> iteration has been broken.
>
> Now, an explicit of_node_put() is needed to release the reference.
>
> Fixes: 095561f476ab ("i2c: fsi: Create busses for all ports")
> Signed-off-by: Christophe JAILLET <[email protected]>
merged to i2c/i2c-host-fixes.
Thanks,
Andi