Files
linux/drivers
Linkai Gong 62edb8ca0a i2c: mux: demux-pinctrl: fix OF node leak on kstrdup failure
of_parse_phandle() takes a reference on the parent node. If a later
devm_kstrdup() fails, err_rollback only releases nodes for indices
0..i-1, so the current node is leaked.

of_node_put() the current parent before rolling back.

Fixes: 7c0195fa9a ("i2c: mux: demux-pinctrl: check the return value of devm_kstrdup()")
Signed-off-by: Linkai Gong <gonglinkai@kylinos.cn>
Cc: <stable@vger.kernel.org> # v6.6+
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
Link: https://patch.msgid.link/20260813095617.2246320-1-gonglinkai@kylinos.cn
2026-08-19 21:55:53 +02:00
..
2026-06-16 08:53:53 -07:00
2026-08-07 21:22:50 +02:00
2026-07-31 13:28:05 +02:00
2026-08-10 12:46:29 +02:00
2026-08-06 09:15:40 -07:00