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

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

Merge "msm-core: Move get_user out side critical section"

parents 0eeff917 74f89371
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -428,8 +428,8 @@ static int update_userspace_power(struct sched_params __user *argp)
	/* Copy the same power values for all the cpus in the cpumask
	 * argp->cpumask within the cluster (argp->cluster)
	 */
	spin_lock(&update_lock);
	get_user(cpumask, &argp->cpumask);
	spin_lock(&update_lock);
	for (i = 0; i < MAX_CORES_PER_CLUSTER; i++, cpumask >>= 1) {
		if (!(cpumask & 0x01))
			continue;