From 822561f07525fa2fe3fcee2c3740347b32281521 Mon Sep 17 00:00:00 2001 From: Pavankumar Kondeti Date: Fri, 25 Nov 2016 15:31:04 +0530 Subject: 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 --- kernel/sched/hmp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/sched/hmp.c b/kernel/sched/hmp.c index 968a41e0e81e..301ed592f50f 100644 --- a/kernel/sched/hmp.c +++ b/kernel/sched/hmp.c @@ -3024,6 +3024,7 @@ const char *sched_window_reset_reasons[] = { "WINDOW_CHANGE", "POLICY_CHANGE", "HIST_SIZE_CHANGE", + "FREQ_AGGREGATE_CHANGE", }; /* Called with IRQs enabled */ -- cgit v1.2.3