]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: mux-gpmux: Add of_node_put() when breaking out of loop
authorLiang He <windhl@126.com>
Fri, 22 Jul 2022 01:24:01 +0000 (09:24 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Aug 2022 12:23:34 +0000 (14:23 +0200)
commit8ec78d94678cf1264cb32b12364e53676ff684e7
treedc73c9ff62285c5c5e62785851e286db64998da1
parent56b1cf1d832b5c1583c7713d699b59c10e270c41
i2c: mux-gpmux: Add of_node_put() when breaking out of loop

[ Upstream commit 5d2ccb853ecb774fb9fbb18646b0b9095045ea0a ]

In i2c_mux_probe(), we should call of_node_put() when breaking out
of for_each_child_of_node() which will automatically increase and
decrease the refcount.

Fixes: 084a8653c40a ("i2c: i2c-mux-gpmux: new driver")
Signed-off-by: Liang He <windhl@126.com>
Acked-by: Peter Rosin <peda@axentia.se>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/i2c/muxes/i2c-mux-gpmux.c