linux-stable/drivers/i2c/muxes
Peter Rosin 1a22aabf20 i2c: mux: demux-pinctrl: do not deactivate a master that is not active
Attempting to rollback the activation of the current master when
the current master has not been activated is bad. priv->cur_chan
and priv->cur_adap are both still zeroed out and the rollback
may result in attempts to revert an of changeset that has not been
applied and do result in calls to both del and put the zeroed out
i2c_adapter. Maybe it crashes, or whatever, but it's bad in any
case.

Fixes: e9d1a0a41d ("i2c: mux: demux-pinctrl: Fix an error handling path in 'i2c_demux_pinctrl_probe()'")
Signed-off-by: Peter Rosin <peda@axentia.se>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
2022-03-20 00:49:43 +01:00
..
i2c-arb-gpio-challenge.c i2c: muxes: i2c-arb-gpio-challenge: Demote non-conformant kernel-doc headers 2021-05-27 21:29:03 +02:00
i2c-demux-pinctrl.c i2c: mux: demux-pinctrl: do not deactivate a master that is not active 2022-03-20 00:49:43 +01:00
i2c-mux-gpio.c i2c: mux: gpio: Use array_size() helper 2021-11-23 11:54:41 +01:00
i2c-mux-gpmux.c i2c: mux: gpmux: Simplify with dev_err_probe() 2020-09-18 23:02:02 +02:00
i2c-mux-ltc4306.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 177 2019-05-30 11:29:19 -07:00
i2c-mux-mlxcpld.c i2c: mux: mlxcpld: Add callback to notify mux creation completion 2021-02-09 11:35:44 +01:00
i2c-mux-pca954x.c i2c: mux: pca954x: Convert license to SPDX identifier 2020-05-11 21:23:23 +02:00
i2c-mux-pca9541.c i2c: mux: pca9541: use the BIT macro 2020-01-03 15:00:53 +01:00
i2c-mux-pinctrl.c Merge branch 'i2c/for-5.3' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux 2019-07-15 21:10:39 -07:00
i2c-mux-reg.c i2c: mux: reg: Simplify with dev_err_probe() 2020-09-18 23:02:03 +02:00
Kconfig i2c: Fix Kconfig indentation 2019-11-25 17:13:51 +01:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00