]> git.itanic.dy.fi Git - linux-stable/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)
commit6435319c34704994e19b0767f6a4e6f37439867b
treea79077036186c11085f385e4efcb3747633194e2
parent49897cfe620dc7445d18d6ae6e1da9c8d4c02c94
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: ac8498f0ce53 ("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