watchdog: core: check hwdev before use it
Avoid null pointer access, if hwdev was not
set before call watchdog_register.

Signed-off-by: Andreas Schmidt <mail@schmidt-andreas.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent aea31bf commit 361da8bb8237766755da6d3a3226efcd8679a7a9
@Andreas Schmidt Andreas Schmidt authored on 22 Apr 2018
Sascha Hauer committed on 25 Apr 2018
Showing 1 changed file
View
drivers/watchdog/wd_core.c