summaryrefslogtreecommitdiff
path: root/drivers/cpufreq/loongson2_cpufreq.c
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2013-08-06 17:23:13 (GMT)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2013-08-10 01:24:48 (GMT)
commit3de9bdeb28638e164d1f0eb38dd68e3f5d2ac95c (patch)
treeefe5c314af79f28840a2a31eb2e2ca992c0258ae /drivers/cpufreq/loongson2_cpufreq.c
parentadc97d6a735dbb1e94cb4f1bf0b55f258b349941 (diff)
downloadlinux-fsl-qoriq-3de9bdeb28638e164d1f0eb38dd68e3f5d2ac95c.tar.xz
cpufreq: improve error checking on return values of __cpufreq_governor()
The __cpufreq_governor() function can fail in rare cases especially if there are bugs in cpufreq drivers. Thus we must stop processing as soon as this routine fails, otherwise it may result in undefined behavior. This patch adds error checking code whenever this routine is called from any place. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/cpufreq/loongson2_cpufreq.c')
0 files changed, 0 insertions, 0 deletions