kernel_optimize_test/drivers/i2c/muxes
Peter Rosin 0d3ad6142a i2c: mux: demux-pinctrl: do not deactivate a master that is not active
[ Upstream commit 1a22aabf20adf89cb216f566913196128766f25b ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-04-08 14:40:22 +02:00
..
i2c-arb-gpio-challenge.c
i2c-demux-pinctrl.c
i2c-mux-gpio.c
i2c-mux-gpmux.c
i2c-mux-ltc4306.c
i2c-mux-mlxcpld.c
i2c-mux-pca954x.c
i2c-mux-pca9541.c
i2c-mux-pinctrl.c
i2c-mux-reg.c
Kconfig
Makefile