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

Commit dea13806 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "ion: msm: Only check heap IDs if the heap has been initialized"

parents 4214124d e4dee59f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -411,7 +411,7 @@ struct ion_heap *get_ion_heap(int heap_id)

	for (i = 0; i < num_heaps; i++) {
		heap = heaps[i];
		if (heap->id == heap_id)
		if (heap && heap->id == heap_id)
			return heap;
	}