sched: Fix out of bounds array access in sched_reset_all_window_stats()

A new reset reason code "FREQ_AGGREGATE_CHANGE" is added to
reset_reason_code enum but the corresponding string array is not
updated. Fix this.

Change-Id: I2a17d95328bef91c4a5dd4dde418296efca44431
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
This commit is contained in:
Pavankumar Kondeti 2016-11-25 15:31:04 +05:30
parent 9aa1df0cf5
commit 822561f075

View file

@ -3024,6 +3024,7 @@ const char *sched_window_reset_reasons[] = {
"WINDOW_CHANGE",
"POLICY_CHANGE",
"HIST_SIZE_CHANGE",
"FREQ_AGGREGATE_CHANGE",
};
/* Called with IRQs enabled */