diff options
author | Guenter Roeck <linux@roeck-us.net> | 2016-03-09 05:46:13 +0300 |
---|---|---|
committer | Wim Van Sebroeck <wim@iguana.be> | 2016-03-16 23:11:50 +0300 |
commit | d1ed3ba4e3d76b4ebec239c64f990c26d7935700 (patch) | |
tree | 841d94b53efd656fef958538bee429f6c1c379de /arch/arm/mach-lpc32xx/phy3250.c | |
parent | 11d7aba9ceb726d86aaaca3eb5f7d79de38989c5 (diff) | |
download | linux-d1ed3ba4e3d76b4ebec239c64f990c26d7935700.tar.xz |
watchdog: Ensure that wdd is not dereferenced if NULL
Smatch rightfully complains that wdd is dereferenced in the watchdog
release function after being checked for NULL. Also make sure that it
is not accessed outside mutex protection to avoid use-after-free problems.
Fixes: e6c71e84e4c0 ("watchdog: Introduce WDOG_HW_RUNNING flag")
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Diffstat (limited to 'arch/arm/mach-lpc32xx/phy3250.c')
0 files changed, 0 insertions, 0 deletions