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

Commit 7da415f4 authored by Neeti Desai's avatar Neeti Desai Committed by Rohit Vaswani
Browse files

msm: ion: Fix NULL pointer dereference in error path



If the hypervisor fails to assign the correct vmids to the
memory allocated, we should free the allocated memory. However
the free path depends on certain parameters of the ion_buffer
structure which have not yet been populated.

Update the function definition to accept the scatter gather list
instead of the ion buffer, since we are zero'ing the list
and not the buffer.

Change-Id: I68bef3af6c1b7e8092fbc0e878d3c825580f438e
Signed-off-by: default avatarNeeti Desai <neetid@codeaurora.org>
parent f5d3db32
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