Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

watchdog: stm32: Fix wakeup source leaks on device unbind

Device can be unbound or probe can fail, so driver must also release
memory for the wakeup source.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20250406203531.61322-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>

authored by

Krzysztof Kozlowski and committed by
Wim Van Sebroeck
b6f8a417 13b5fb33

+1 -1
+1 -1
drivers/watchdog/stm32_iwdg.c
··· 291 291 return 0; 292 292 293 293 if (of_property_read_bool(np, "wakeup-source")) { 294 - ret = device_init_wakeup(dev, true); 294 + ret = devm_device_init_wakeup(dev); 295 295 if (ret) 296 296 return ret; 297 297