On Tue, Oct 01, 2024 at 03:41:32PM +0200, Nuno Sa wrote: > We register a devm action to call adp5589_clear_config() and then pass > the i2c client as argument so that we can call i2c_get_clientdata() in > order to get our device object. However, i2c_set_clientdata() is only > being set at the end of the probe function which means that we'll get a > NULL pointer dereference in case the probe function fails early. > > Fixes: 30df385e35a4 ("Input: adp5589-keys - use devm_add_action_or_reset() for register clear") > Signed-off-by: Nuno Sa <nuno.sa@xxxxxxxxxx> Applied and tagged for stable. Thanks. -- Dmitry