Skip to content

Commit 50a7f05

Browse files
vireshk0day robot
authored andcommitted
PM / OPP: Propagate error properly from dev_pm_opp_set_sharing_cpus()
We are returning 0 even in case of errors, fix it. Cc: 4.3 <[email protected]> # 4.3 Fixes: 8d4d4e9 ("PM / OPP: Add helpers for initializing CPU OPPs") Reported-by: Dan Carpenter <[email protected]> Reviewed-by: Stephen Boyd <[email protected]> Signed-off-by: Viresh Kumar <[email protected]>
1 parent abac5a3 commit 50a7f05

File tree

1 file changed

+1
-1
lines changed
  • drivers/base/power/opp

1 file changed

+1
-1
lines changed

drivers/base/power/opp/cpu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ int dev_pm_opp_set_sharing_cpus(struct device *cpu_dev, cpumask_var_t cpumask)
153153
out_rcu_read_unlock:
154154
rcu_read_unlock();
155155

156-
return 0;
156+
return ret;
157157
}
158158
EXPORT_SYMBOL_GPL(dev_pm_opp_set_sharing_cpus);
159159

0 commit comments

Comments
 (0)