Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b3bbb395 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "PM / devfreq: Fix error handling in governor_cpufreq"

parents 7be6af6d 0a9c8a31
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -242,7 +242,7 @@ static int register_cpufreq(void)
	mutex_lock(&state_lock);

	if (cpufreq_cnt)
		goto out;
		goto cnt_not_zero;

	get_online_cpus();
	ret = cpufreq_register_notifier(&cpufreq_policy_nb,
@@ -265,9 +265,9 @@ static int register_cpufreq(void)
			cpufreq_cpu_put(policy);
		}
	}
	put_online_cpus();

out:
	put_online_cpus();
cnt_not_zero:
	if (!ret)
		cpufreq_cnt++;
	mutex_unlock(&state_lock);