git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[PATCH] Correct bound checking from the value returned from _PPC method.
[pandora-kernel.git]
/
drivers
/
acpi
/
processor_perflib.c
diff --git
a/drivers/acpi/processor_perflib.c
b/drivers/acpi/processor_perflib.c
index
7ba5e49
..
6fd174a
100644
(file)
--- a/
drivers/acpi/processor_perflib.c
+++ b/
drivers/acpi/processor_perflib.c
@@
-83,10
+83,8
@@
static int acpi_processor_ppc_notifier(struct notifier_block *nb,
goto out;
ppc = (unsigned int)pr->performance_platform_limit;
- if (!ppc)
- goto out;
- if (ppc > pr->performance->state_count)
+ if (ppc >
=
pr->performance->state_count)
goto out;
cpufreq_verify_within_limits(policy, 0,