3dc0ec46f6
i2c-mux-gpmux uses the pair of_find_i2c_adapter_by_node() /
i2c_put_adapter(). These pair alone is not correct to properly lock the
I2C parent adapter.
Indeed, i2c_put_adapter() decrements the module refcount while
of_find_i2c_adapter_by_node() does not increment it. This leads to an
underflow of the parent module refcount.
Use the dedicated function, of_get_i2c_adapter_by_node(), to handle
correctly the module refcount.
Fixes:
|
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
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 |