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

Commit bee2ebfc authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

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

parents b5202420 f596c735
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -692,12 +692,11 @@ err_create_cached_pools:
err_create_uncached_pools:
	kfree(heap->cached_pools);
err_create_secure_pools:
	 while (i >= 0) {
	for (i = 0; i < VMID_LAST; i++) {
		if (heap->secure_pools[i]) {
			ion_system_heap_destroy_pools(heap->secure_pools[i]);
			kfree(heap->secure_pools[i]);
		}
		i--;
	}
err_alloc_cached_pools:
	kfree(heap->uncached_pools);