]> 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)
committerWolfram Sang <wsa@kernel.org>
Tue, 26 Jul 2022 21:10:59 +0000 (23:10 +0200)
commit5d2ccb853ecb774fb9fbb18646b0b9095045ea0a
treea79077036186c11085f385e4efcb3747633194e2
parenta94a6ff80a2b6d52a227837c73611b012fbfcc47
i2c: mux-gpmux: Add of_node_put() when breaking out of loop

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>
drivers/i2c/muxes/i2c-mux-gpmux.c