-
Dinghao Liu authored
When watchdog_kworker is NULL, we should free wd_data before the function returns to prevent memleak. Fixes: 664a3923 ("watchdog: Introduce hardware maximum heartbeat in watchdog core") Signed-off-by:
Dinghao Liu <dinghao.liu@zju.edu.cn> Reviewed-by:
Guenter Roeck <linux@roeck-us.net> Link: https://lore.kernel.org/r/20200824024001.25474-1-dinghao.liu@zju.edu.cnSigned-off-by:
Guenter Roeck <linux@roeck-us.net> Signed-off-by:
Wim Van Sebroeck <wim@linux-watchdog.org>
5afb6d20