git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ipc: end multiprocess thread during cleanup
[dpdk.git]
/
lib
/
power
/
power_pstate_cpufreq.c
diff --git
a/lib/power/power_pstate_cpufreq.c
b/lib/power/power_pstate_cpufreq.c
index
3b60751
..
86f8a76
100644
(file)
--- a/
lib/power/power_pstate_cpufreq.c
+++ b/
lib/power/power_pstate_cpufreq.c
@@
-419,6
+419,11
@@
power_get_available_freqs(struct pstate_power_info *pi)
*/
num_freqs = (base_max_freq - sys_min_freq) / BUS_FREQ + 1 +
pi->turbo_available;
*/
num_freqs = (base_max_freq - sys_min_freq) / BUS_FREQ + 1 +
pi->turbo_available;
+ if (num_freqs >= RTE_MAX_LCORE_FREQS) {
+ RTE_LOG(ERR, POWER, "Too many available frequencies: %d\n",
+ num_freqs);
+ goto out;
+ }
/* Generate the freq bucket array.
* If turbo is available the freq bucket[0] value is base_max +1
/* Generate the freq bucket array.
* If turbo is available the freq bucket[0] value is base_max +1