Hi, On Sun, Nov 29, 2026 at 05:47:41PM +0800, Tian Xuechen wrote: > From: Tian Xuechen <202300460064@mail.sdu.edu.cn> > > The restart notifier remains registered after devres releases its > driver data. Arrange for the device to unregister the notifier > before that storage goes away. > > This issue was found by our static analysis tool under development. > > Fixes: 9fa7cdb4368f ("power: reset: Add a driver for the ep93xx reset") > Signed-off-by: Tian Xuechen <202300460064@mail.sdu.edu.cn> > --- I queued a different fix, which was sent before this one. Greetings, -- Sebastian > drivers/power/reset/ep93xx-restart.c | 8 +++++++- > 1 file changed, 7 insertions(+), 1 deletion(-) > > diff --git a/drivers/power/reset/ep93xx-restart.c b/drivers/power/reset/ep93xx-restart.c > index 46415a3071e7..a65c84e4e5a7 100644 > --- a/drivers/power/reset/ep93xx-restart.c > +++ b/drivers/power/reset/ep93xx-restart.c > @@ -41,6 +41,11 @@ static int ep93xx_restart_handle(struct notifier_block *this, > return NOTIFY_DONE; > } > > +static void ep93xx_reboot_unregister(void *data) > +{ > + unregister_restart_handler(data); > +} > + > static int ep93xx_reboot_probe(struct auxiliary_device *adev, > const struct auxiliary_device_id *id) > { > @@ -65,7 +70,8 @@ static int ep93xx_reboot_probe(struct auxiliary_device *adev, > if (err) > return dev_err_probe(dev, err, "can't register restart notifier\n"); > > - return 0; > + return devm_add_action_or_reset(dev, ep93xx_reboot_unregister, > + &priv->restart_handler); > } > > static const struct auxiliary_device_id ep93xx_reboot_ids[] = { > > -- > 2.43.0 > >