linux_dsm_epyc7002/drivers/thermal
Eduardo Valentin 70d23b29e4 thermal: db8500_cpufreq_cooling: remove usage of IS_ERR_OR_NULL()
This patch changes the driver to avoid the usage of IS_ERR_OR_NULL()
macro. This macro can lead to dangerous results, like returning
success (0) during a failure scenario (NULL pointer handling).

The case present in this driver can be translated to a simple
check for IS_ERR(), as the cpufreq_cooling_register() returns
either a valid pointer or an ERR_PTR().

Cc: Zhang Rui <rui.zhang@intel.com>
Cc: Russell King <rmk@arm.linux.org.uk>
Cc: Grant Likely <grant.likely@secretlab.ca>
Cc: Rob Herring <rob.herring@calxeda.com>
Cc: Hongbo Zhang <hongbo.zhang@stericsson.com>
Cc: linux-pm@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Cc: devicetree-discuss@lists.ozlabs.org
Signed-off-by: Eduardo Valentin <eduardo.valentin@ti.com>
Acked-by: Fabio Baltieri <fabio.baltieri@linaro.org>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
2013-04-27 09:28:38 +08:00
..
armada_thermal.c thermal: Add driver for Armada 370/XP SoC thermal management 2013-04-02 21:04:09 +08:00
cpu_cooling.c thermal: cpu_cooling: remove unused symbols 2013-04-25 00:34:44 +08:00
db8500_cpufreq_cooling.c thermal: db8500_cpufreq_cooling: remove usage of IS_ERR_OR_NULL() 2013-04-27 09:28:38 +08:00
db8500_thermal.c thermal: db8500: Fix missing mutex_unlock() in probe error paths 2013-03-26 22:08:08 +08:00
dove_thermal.c thermal: dove: Fix thermal sensor formula 2013-03-26 22:13:10 +08:00
exynos_thermal.c Merge branch 'exynos-fix' of .git into next 2013-04-25 00:04:06 +08:00
fair_share.c Thermal: build thermal governors into thermal_sys module 2013-04-14 23:28:43 +08:00
intel_powerclamp.c Fix mis-merge of intel_powerclamp.c resulting in compile error 2013-02-28 20:23:09 -08:00
Kconfig thermal: cpu_cooling: update Kconfig entry 2013-04-25 00:34:40 +08:00
kirkwood_thermal.c thermal: kirkwood: Fix thermal sensor formula 2013-03-26 22:12:20 +08:00
Makefile Thermal: build cpu_cooling code into thermal_sys module 2013-04-14 23:28:49 +08:00
rcar_thermal.c thermal: rcar: add pm_runtime_xxx() support 2013-04-02 21:18:39 +08:00
spear_thermal.c drivers/thermal/spear_thermal.c: use devm_clk_get 2013-01-04 15:38:25 +08:00
step_wise.c Thermal: build thermal governors into thermal_sys module 2013-04-14 23:28:43 +08:00
thermal_core.c thermal: thermal_core: remove usage of IS_ERR_OR_NULL 2013-04-27 09:28:25 +08:00
thermal_core.h Thermal: build thermal governors into thermal_sys module 2013-04-14 23:28:43 +08:00
user_space.c Thermal: build thermal governors into thermal_sys module 2013-04-14 23:28:43 +08:00