summaryrefslogtreecommitdiff
path: root/drivers/watchdog/renesas_wdt.c
diff options
context:
space:
mode:
authorWolfram Sang <wsa+renesas@sang-engineering.com>2018-08-28 13:13:47 +0300
committerWim Van Sebroeck <wim@linux-watchdog.org>2018-10-02 14:32:24 +0300
commit953b9dd7725bad55a922a35e75bff7bebf7b9978 (patch)
tree21362448aa15c3147f1cb97e5a07863632602e5b /drivers/watchdog/renesas_wdt.c
parent3bed02a2966146b5876b366f4489e30af0547c66 (diff)
downloadlinux-953b9dd7725bad55a922a35e75bff7bebf7b9978.tar.xz
watchdog: core: fix null pointer dereference when releasing cdev
watchdog_stop() calls watchdog_update_worker() which needs a valid wdd->wd_data pointer. So, when unregistering the cdev, clear the pointers after we call watchdog_stop(), not before. Fixes: bb292ac1c602 ("watchdog: Introduce watchdog_stop_on_unregister helper") Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Reviewed-by: Fabrizio Castro <fabrizio.castro@bp.renesas.com> Reviewed-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
Diffstat (limited to 'drivers/watchdog/renesas_wdt.c')
0 files changed, 0 insertions, 0 deletions