Commit 3eaeb3d1 authored by Sean Callanan's avatar Sean Callanan Committed by Aaron Ding
Browse files

Don't use more memory groups than declared



The number of usable memory groups is limited by the constant limit
MEMORY_GROUP_MANAGER_NR_GROUPS but also by the number of groups actually
declared.  Check both limits during allocation.

Bug: 201677538
Signed-off-by: default avatarSean Callanan <spyffe@google.com>
Change-Id: Id23264452a8472e7589ffce3c6bc87cf0552ca32
parent f4860f23
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment