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

Commit ae0a1eda authored by Jordan Crouse's avatar Jordan Crouse Committed by Tarun Karra
Browse files

msm: kgsl: Zero the pointer to the dmabuf sg list before freeing



We borrow the sg table pointer from the dmabuf if it exists instead
of creating our own.  If it isn't zeroed after calling
kgsl_destroy_ion() then kgsl_sharedmem_free() thinks we own it tries
to walk it / free it.  Since the buffer has been previously freed
bad things happen.

Change-Id: Ic0dedbadbf186a47b8533cc758ff0142744aa8b2
Signed-off-by: default avatarJordan Crouse <jcrouse@codeaurora.org>
parent 3522ea85
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