Android 12.0.0 Release 0.42 (SQ1D.220205.003,raven/oriole)
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: Sean Callanan <spyffe@google.com> Change-Id: Id23264452a8472e7589ffce3c6bc87cf0552ca32