From: Viresh Kumar Date: Thu, 5 Nov 2015 08:51:18 +0000 (+0530) Subject: PM / OPP: Propagate error properly from dev_pm_opp_set_sharing_cpus() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1794ec1f9585501e4ed4390f5a5d396fd28c63ce;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git PM / OPP: Propagate error properly from dev_pm_opp_set_sharing_cpus() We are returning 0 even in case of errors, fix it. Fixes: 8d4d4e98acd6 ("PM / OPP: Add helpers for initializing CPU OPPs") Reported-by: Dan Carpenter Reviewed-by: Stephen Boyd Signed-off-by: Viresh Kumar Cc: 4.3 # 4.3 Signed-off-by: Rafael J. Wysocki --- diff --git a/drivers/base/power/opp/cpu.c b/drivers/base/power/opp/cpu.c index c27a1cdffec9..2139c9d4c447 100644 --- a/drivers/base/power/opp/cpu.c +++ b/drivers/base/power/opp/cpu.c @@ -156,7 +156,7 @@ int dev_pm_opp_set_sharing_cpus(struct device *cpu_dev, cpumask_var_t cpumask) out_rcu_read_unlock: rcu_read_unlock(); - return 0; + return ret; } EXPORT_SYMBOL_GPL(dev_pm_opp_set_sharing_cpus);