commit | 15210ad18fcbd7f53f40e26e4391710d271c2daf | [log] [tgz] |
---|---|---|
author | Fabio Estevam <fabio.estevam@nxp.com> | Sat Jul 22 13:04:33 2017 -0300 |
committer | Wim Van Sebroeck <wim@iguana.be> | Sat Sep 09 20:50:35 2017 +0200 |
tree | 2708ced2eafdf1c3077bb4d45c1a7581dee5c44a | |
parent | 6f671c6b6288fd673e8b8b8acf1070100ba8188a [diff] |
watchdog: qcom: Check for platform_get_resource() failure platform_get_resource() may fail, so we should better check its return value and propagate an error in case it fails. This avoids a NULL pointer dereference a bit later in the code. Signed-off-by: Fabio Estevam <fabio.estevam@nxp.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@iguana.be>