mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 05:39:54 -04:00
Merge "ion: msm: Only check heap IDs if the heap has been initialized"
This commit is contained in:
commit
dea13806a5
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue