]> git.baikalelectronics.ru Git - kernel.git/commit
cpufreq: arm_scmi: Fix error path when allocation failed
authorLukasz Luba <lukasz.luba@arm.com>
Tue, 3 Aug 2021 09:07:44 +0000 (10:07 +0100)
committerViresh Kumar <viresh.kumar@linaro.org>
Wed, 4 Aug 2021 04:01:57 +0000 (09:31 +0530)
commit5d280d75a84e444f5443d4a158293f45824f0d05
treede511eb27e6a8ab0f96734f5031b6ff4d31d07e9
parent0e14d66f31e2ac18a0e20083e7606ece4d18962d
cpufreq: arm_scmi: Fix error path when allocation failed

Stop the initialization when cpumask allocation failed and return an
error.

Fixes: c1d66cfa6867 ("scmi-cpufreq: Get opp_shared_cpus from opp-v2 for EM")
Signed-off-by: Lukasz Luba <lukasz.luba@arm.com>
Reviewed-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/cpufreq/scmi-cpufreq.c