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

Commit e4dee59f authored by Isaac J. Manjarres's avatar Isaac J. Manjarres
Browse files

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



The get_ion_heap() code blindly checks heap IDs in the array
of heap pointers without checking to see if the heap pointer
is valid, which can cause a NULL pointer to be dereferenced.

Add a check before inspecting the heap ID to ensure that the
heap pointer is valid.

Change-Id: I2ecdc652460878446e3f2daa2379e04ac021d75c
Signed-off-by: default avatarIsaac J. Manjarres <isaacm@codeaurora.org>
parent 99878ea1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment