On Fri, Dec 04, 2015 at 05:33:14PM +0800, Gao Pan wrote: > During driver probe, i2c_imx_init_recovery_info() must come before > i2c_add_numbered_adapter(), because the get/set_scl() functions > are assigned in i2c_register_adapter() under the conditon that bus > recover_info are initialized. Otherwise, get/set_scl() function > pointers never get assigned. > > In such case, when i2c_generic_gpio_recovery() is used for bus recovery, > there will be kernel crash because bri->set_scl is NULL. > > The solution to this bug is moving i2c_imx_init_recovery_info() before > i2c_register_adapter(). > > Signed-off-by: Gao Pan <b54642@xxxxxxxxxxxxx> > Signed-off-by: Fugang Duan <B38611@xxxxxxxxxxxxx> Makes sense, but I can't apply this one. What is it based on?
Attachment:
signature.asc
Description: Digital signature