mirror of
https://github.com/commaai/agnos-kernel-sdm845.git
synced 2026-06-08 03:15:12 +08:00
Merge "ion: invalidate the pool pointers after free"
This commit is contained in:
committed by
Gerrit - the friendly Code Review server
commit
b50d2bd7c7
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user