diff options
| author | Antonio Borneo <antonio.borneo@foss.st.com> | 2026-11-16 20:01:30 +0100 |
|---|---|---|
| committer | Guenter Roeck <linux@roeck-us.net> | 2026-11-16 12:35:39 -0800 |
| commit | ac65fcce7f4d6e327ab7b755f999a8b15381d3f0 (patch) | |
| tree | 465ba5e1bb66b64e221c47e60315f9bbb78d6f58 /rust/kernel/alloc | |
| parent | abbf55699ff6a8830b864aa1fab9f24edc9e72a6 (diff) | |
watchdog: stm32_iwdg: use managed variant of dev_pm_set_wake_irq()
On probe failure after stm32_iwdg_irq_init() or on driver unbind,
the struct wake_irq allocated by dev_pm_set_wake_irq() is leaked
and dev->power.wakeirq remains attached to the device.
Any subsequent attempt to re-probe the device hits the
dev->power.wakeirq check in dev_pm_attach_wake_irq(), triggers a
dev_WARN_ONCE() splat, and fails probe with -EEXIST.
Use the managed version devm_pm_set_wake_irq().
This is reported by Sashiko inside the raw log of another commit
that touches the same driver.
Fixes: 3ab1663af6c1 ("watchdog: stm32_iwdg: Add pretimeout support")
Reported-by: Sashiko <sashiko-bot@kernel.org>
Link: https://sashiko.dev/#/message/20261116132416.1184447-3-antonio.borneo%40foss.st.com
Link: https://sashiko.dev/#/log/249869
Signed-off-by: Antonio Borneo <antonio.borneo@foss.st.com>
Link: https://patch.msgid.link/20261116190130.1191501-1-antonio.borneo@foss.st.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'rust/kernel/alloc')
0 files changed, 0 insertions, 0 deletions
