]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
hwmon: (emc2305) fix double put in emc2305_probe_childs_from_dt
authorPei Xiao <xiaopei01@kylinos.cn>
Fri, 5 Dec 2025 02:02:41 +0000 (10:02 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 2 Jan 2026 11:57:03 +0000 (12:57 +0100)
commitc3cd1d514eb03c55c986a20bee8ea86c96682aff
tree64118dc03763453bdcb94bdd12edbafe2ddff624
parent6c95c2e00996ce1d1aedf437311d1d3526c05d04
hwmon: (emc2305) fix double put in emc2305_probe_childs_from_dt

[ Upstream commit 541dfb49dcb80c2509e030842de77adfb77820f5 ]

./drivers/hwmon/emc2305.c:597:4-15: ERROR: probable double put

Device node iterators put the previous value of the index variable, so an
explicit put causes a double put.

Signed-off-by: Pei Xiao <xiaopei01@kylinos.cn>
Link: https://lore.kernel.org/r/tencent_CD373F952BE48697C949E39CB5EB77841D06@qq.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/hwmon/emc2305.c