Home
last modified time | relevance | path

Searched hist:"0 a91e551527a7b931d36f4822b97e70536bd2bb3" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/tools/power/x86/turbostat/
H A Dturbostat.cdiff 0a91e551527a7b931d36f4822b97e70536bd2bb3 Mon Apr 25 07:03:15 CDT 2016 Colin Ian King <colin.king@canonical.com> tools/power turbostat: fix error case overflow read of slm_freq_table[]

When i >= SLM_BCLK_FREQS, the frequency read from the slm_freq_table
is off the end of the array because msr is set to 3 rather than the
actual array index i. Set i to 3 rather than msr to fix this.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Len Brown <len.brown@intel.com>