Searched hist:fafdbabaf5c6a949168b384e159152f6e37427ba (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/watchdog/ |
H A D | pic32-dmt.c | diff fafdbabaf5c6a949168b384e159152f6e37427ba Fri Jun 17 12:12:05 CDT 2016 Wei Yongjun <yongjun_wei@trendmicro.com.cn> watchdog: pic32-dmt: Fix return value check in pic32_dmt_probe()
In case of error, the function devm_kzalloc() returns NULL pointer not ERR_PTR(). The IS_ERR() test in the return value check should be replaced with NULL test.
Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Reviewed-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
|