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

Skip to content
Commit d7c79e16 authored by Jordan Crouse's avatar Jordan Crouse Committed by Gerrit - the friendly Code Review server
Browse files

msm: kgsl: Correctly handle page allocation failure



If we fail on the first page allocation iteration in
_kgsl_sharedmem_page_alloc then sglen will be 0. Do not blindly
set sg_mark_end() on sg[sglen - 1] without verifying that we
allocated at least one block. We can also skip iterating the
sglist when freeing if sglen is 0.

CRs-Fixed: 771199
Change-Id: Ic0dedbad22c88c1f9efccffddaf266a9a9af4b08
Signed-off-by: default avatarJordan Crouse <jcrouse@codeaurora.org>
parent 9d40188e
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