linux-stable/drivers/i2c
Liang He ebd634be86 i2c: mux-gpmux: Add of_node_put() when breaking out of loop
[ Upstream commit 6435319c34 ]

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: ac8498f0ce ("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>
2022-08-25 11:11:20 +02:00
..
algos i2c: algo: pca: Reapply i2c bus settings after reset 2020-09-23 10:46:34 +02:00
busses i2c: cadence: Support PEC for SMBus block read 2022-08-25 11:11:19 +02:00
muxes i2c: mux-gpmux: Add of_node_put() when breaking out of loop 2022-08-25 11:11:20 +02:00
i2c-boardinfo.c
i2c-core-acpi.c i2c: acpi: fix resource leak in reconfiguration device addition 2021-10-17 10:08:33 +02:00
i2c-core-base.c i2c: Fix a potential use after free 2022-08-25 11:11:16 +02:00
i2c-core-of.c i2c: core: fix use after free in of_i2c_notify 2019-12-17 20:37:32 +01:00
i2c-core-slave.c i2c: slave: add sanity check when unregistering 2020-08-21 09:47:59 +02:00
i2c-core-smbus.c
i2c-core.h
i2c-dev.c i2c: dev: zero out array used for i2c reads from userspace 2021-08-26 08:37:00 -04:00
i2c-mux.c
i2c-slave-eeprom.c
i2c-smbus.c
i2c-stub.c
Kconfig
Makefile