Skip to content
Commit cfcd9f27 authored by Puja Gupta's avatar Puja Gupta
Browse files

sched: fair: Fix potential array out-of-bounds read in __find_new_capacity



To prevent reads past the size of the array, return the index of the
maximum capacity value in the capacity-states array if we can't find an
index with a capacity higher than the utilization passed in to
__find_new_capacity.

CRs-Fixed: 2115053
Change-Id: I20599134c9db4ae9fd298cab6197d2b4e866d3d8
Signed-off-by: default avatarPuja Gupta <pujag@codeaurora.org>
parent 2f80a4ec
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