diff options
author | Pavankumar Kondeti <pkondeti@codeaurora.org> | 2016-11-25 15:31:04 +0530 |
---|---|---|
committer | Pavankumar Kondeti <pkondeti@codeaurora.org> | 2016-11-29 15:48:34 +0530 |
commit | 822561f07525fa2fe3fcee2c3740347b32281521 (patch) | |
tree | cbf7ed2a6aed017ddef849754198c94ee0532cfb /kernel/sched | |
parent | 9aa1df0cf5ffb58b52b55b4fe2ea6531f795e186 (diff) |
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>
Diffstat (limited to 'kernel/sched')
-rw-r--r-- | kernel/sched/hmp.c | 1 |
1 files changed, 1 insertions, 0 deletions
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 */ |