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

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

Merge "cpufreq: Reject improper settings for userspace min/max limits"

parents 81be6688 cb99ab45
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -696,6 +696,9 @@ static ssize_t store_##file_name \
									\
	memcpy(&new_policy, policy, sizeof(*policy));			\
									\
	new_policy.min = new_policy.user_policy.min;			\
	new_policy.max = new_policy.user_policy.max;			\
									\
	ret = sscanf(buf, "%u", &new_policy.object);			\
	if (ret != 1)							\
		return -EINVAL;						\