CHROMIUM: ARM: exynos: busfreq: Fix array-out-of-bound access.
authorHan Shen <shenhan@google.com>
Fri, 26 Apr 2013 00:06:14 +0000 (17:06 -0700)
committerChromeBot <chrome-bot@google.com>
Tue, 7 May 2013 21:58:44 +0000 (14:58 -0700)
commite861c369ba76cbfbbac5635bc16e314649bd50b9
tree603d5cce580007ec5d102d85412310ad2534a526
parent9d50d110a3dda98237dc3898fd8589d92068efe3
CHROMIUM: ARM: exynos: busfreq: Fix array-out-of-bound access.

In the 1st loop of
arch/arm/mach-exynos/busfreq_opp_exynos5.c:show_time_in_state, sprintf
accesses data->time_in_state[PPMU_MIF][i], where i ranges [0..6], but
time_in_state is defined as array[2][4]. Fixed by change time_in_state
definition.

BUG=None
TEST=Build successfully

Change-Id: I2d4cab59281509e33d34b55892f18635e8b7fa09
Signed-off-by: Han Shen <shenhan@google.com>
Reviewed-on: https://gerrit.chromium.org/gerrit/49266
Reviewed-by: Olof Johansson <olofj@chromium.org>
arch/arm/mach-exynos/include/mach/busfreq_exynos5.h