Skip to content
Commit 4632f561 authored by Joonwoo Park's avatar Joonwoo Park
Browse files

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: default avatarJoonwoo Park <joonwoop@codeaurora.org>
parent 1fd6e206
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment