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

Skip to content
Commit 08d914ab authored by Rajesh Kemisetti's avatar Rajesh Kemisetti Committed by Gerrit - the friendly Code Review server
Browse files

msm: kgsl: Check for integer overflow before allocating memory



In _kgsl_sharedmem_page_alloc(), if the requested size is very
large then there could be a possibility of integer overflow
during memory allocation for scatterlist.

To fix this, check for integer overflow condition before
allocating the memory.

CRs-Fixed: 1005344
Change-Id: I6e0015ab67d6b13fc94d94dafec41788f53820d3
Signed-off-by: default avatarRajesh Kemisetti <rajeshk@codeaurora.org>
parent 6f2f4970
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