commit | 4632f561cede3beaf4e39d872c50b2b6c88ba717 | [log] [tgz] |
---|---|---|
author | Joonwoo Park <joonwoop@codeaurora.org> | Thu Jun 01 14:54:23 2017 -0700 |
committer | Joonwoo Park <joonwoop@codeaurora.org> | Fri Jun 02 14:29:22 2017 -0700 |
tree | 4c472f760606f73feb1b42ef0e9bce42843af380 | |
parent | 1fd6e2064703d00e484c3ea7fc201977944fd55e [diff] |
sched: prevent out of bound access in sched_group_energy() group_idle_state() can return INT_MAX + 1 which is undefined behaviour when there is no CPUs in sched_group. Prevent such by error correctly. Change-Id: I236a90b9725edc2f394ade6533368f5d4b1a21d2 Signed-off-by: Joonwoo Park <joonwoop@codeaurora.org>