aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/gcc-plugins/cyc_complexity_plugin.c
diff options
context:
space:
mode:
authorColin Ian King <[email protected]>2016-04-25 12:03:15 +0000
committerLen Brown <[email protected]>2016-12-01 06:33:17 +0000
commit0a91e551527a7b931d36f4822b97e70536bd2bb3 (patch)
tree925a0597f1a2185b8265f91c39745a41c786f506 /scripts/gcc-plugins/cyc_complexity_plugin.c
parenttools/power turbostat: Allocate correct amount of fd and irq entries (diff)
downloadkernel-0a91e551527a7b931d36f4822b97e70536bd2bb3.tar.gz
kernel-0a91e551527a7b931d36f4822b97e70536bd2bb3.zip
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 <[email protected]> Signed-off-by: Len Brown <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions