Merge "ion: invalidate the pool pointers after free"

This commit is contained in:
Linux Build Service Account
2018-06-23 07:54:50 -07:00
committed by Gerrit - the friendly Code Review server

View File

@@ -756,8 +756,10 @@ static void ion_system_heap_destroy_pools(struct ion_page_pool **pools)
{
int i;
for (i = 0; i < num_orders; i++)
if (pools[i])
if (pools[i]) {
ion_page_pool_destroy(pools[i]);
pools[i] = NULL;
}
}
/**