Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • M msm-5.4
  • Project information
    • Project information
    • Activity
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Commits
Collapse sidebar
  • CodeLinaro
  • la
  • kernel
  • msm-5.4
  • Repository
Switch branch/tag
  • msm-5.4
  • drivers
  • gpu
  • msm
  • kgsl.c
Find file BlameHistoryPermalink
  • Pranav Patel's avatar
    msm: kgsl: check for number of commands in kgsl_ioctl_gpu_aux_command · ade36fe5
    Pranav Patel authored Apr 29, 2021
    
    
    kgsl_ioctl_gpu_aux_command creates a separate drawobj for each command
    in numcmds sent from userspace. All drawbojs created will have same
    timestamp. We can not queue more than one drawobj with same timestamp.
    Each new drawobj must have timestamp greater than previously queued
    drawobjs. This results in failure of kgsl_ioctl_gpu_aux_command.
    Add proper check and return early when numcmds is invalid.
    
    Change-Id: I06413c16b0a21abcffb121b2e332752eb71e6be0
    Signed-off-by: default avatarPranav Patel <pranavp@codeaurora.org>
    Signed-off-by: default avatarAkhil P Oommen <akhilpo@codeaurora.org>
    ade36fe5