Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f596c735 authored by Patrick Daly's avatar Patrick Daly
Browse files

ion: Fix array-out-of-bounds in system heap error path



After creating all secure pools successfully, i == VMID_LAST.
If ion_system_heap_create_pools(), the error path will attempt to
destroy all secure pools, starting from i.

But this is one past the end of the array.
struct ion_page_pool **secure_pools[VMID_LAST];

CRs-Fixed: 997730
Change-Id: Id97ab40a1dc0885f476f6e25cdd324f5ee3dcf04
Signed-off-by: default avatarPatrick Daly <pdaly@codeaurora.org>
parent 241c08df
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment