Skip to content
Snippets Groups Projects
Commit 6a99a02c authored by Yuan Lin's avatar Yuan Lin
Browse files

msm: kgsl: Add missing checks for alloc size and sglen

This reverts commit 44c73103.

In _kgsl_sharedmem_page_alloc():

- Make len of type size_t to be in line with size.
  - Check for boundary limits of requested alloc size before honoring.
    - Make sure sglen is greater than zero before marking it as end
      of sg list.

BUG=27475454

Change-Id: I9053000bf8ca17b4b5237863fe7d3f9a73e811ad
parent 44c73103
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment