Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 80392
b: refs/heads/master
c: 53391fa
h: refs/heads/master
v: v3
  • Loading branch information
Yi Yang authored and Ingo Molnar committed Jan 30, 2008
1 parent c5e2534 commit 95cf3d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1ce357129a55a791318e23f5d7b8a9f1352858aa
refs/heads/master: 53391fa20cab6df6b476a5a0ad6be653c9de0c46
2 changes: 1 addition & 1 deletion trunk/drivers/cpufreq/cpufreq.c
Original file line number Diff line number Diff line change
Expand Up @@ -1604,7 +1604,7 @@ static int __cpufreq_set_policy(struct cpufreq_policy *data,
memcpy(&policy->cpuinfo, &data->cpuinfo,
sizeof(struct cpufreq_cpuinfo));

if (policy->min > data->min && policy->min > policy->max) {
if (policy->min > data->max || policy->max < data->min) {
ret = -EINVAL;
goto error_out;
}
Expand Down

0 comments on commit 95cf3d2

Please sign in to comment.