diff options
| author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2026-03-01 17:21:01 +0100 |
|---|---|---|
| committer | Andi Shyti <andi.shyti@kernel.org> | 2026-03-19 23:45:06 +0100 |
| commit | be627abcc0d5dbd5882873bd85fbc18aa3d189ed (patch) | |
| tree | 2a28e7787a86d1e24b2d45943c42de7380471b50 /Documentation/console/git@git.tavy.me:linux.git | |
| parent | aa79f996eb41e95aed85a1bd7f56bcd6a3842008 (diff) | |
i2c: fsi: Fix a potential leak in fsi_i2c_probe()
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 <christophe.jaillet@wanadoo.fr>
Cc: <stable@vger.kernel.org> # v5.3+
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
Link: https://lore.kernel.org/r/fd805c39f8de51edf303856103d782138a1633c8.1772382022.git.christophe.jaillet@wanadoo.fr
Diffstat (limited to 'Documentation/console/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
