summaryrefslogtreecommitdiff
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorYuho Choi <dbgh9129@gmail.com>2026-06-01 15:20:05 -0400
committerGuenter Roeck <linux@roeck-us.net>2026-06-08 11:57:23 -0700
commita298c7302ee9584a7a1ac1e8acbede8d98ab51a4 (patch)
tree7bc62f9eea58a06b9a733226c9cbfb3f3e9187ad /scripts/Makefile.thinlto
parent942d413e9ce7896ff80b15a3ca75af44207f618b (diff)
watchdog: unregister PM notifier on watchdog unregister
watchdog_register_device() registers wdd->pm_nb when WDOG_NO_PING_ON_SUSPEND is set, but watchdog_unregister_device() does not remove it. This leaves an embedded notifier block on the PM notifier chain after the watchdog device has been unregistered. A later suspend/resume notification can then call watchdog_pm_notifier() with a stale watchdog_device pointer, or at minimum after wdd->wd_data has been cleared by watchdog_dev_unregister(). Unregister the PM notifier before tearing down the watchdog device. Fixes: 60bcd91aafd2 ("watchdog: introduce watchdog_dev_suspend/resume") Signed-off-by: Yuho Choi <dbgh9129@gmail.com> Link: https://lore.kernel.org/r/20260601192005.1970805-1-dbgh9129@gmail.com Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions