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 <>
Change-Id: Id23264452a8472e7589ffce3c6bc87cf0552ca32
1 file changed
tree: a35d2ca0b73f1f081f3687c540ce6e18c7e2f439
  1. common/
  2. mali_kbase/
  3. mali_pixel/