Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • mesa mesa
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3,085
    • Issues 3,085
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 1,020
    • Merge requests 1,020
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar

Due to an influx of spam, we have had to impose restrictions on new accounts. Please see this wiki page for instructions on how to get full permissions. Sorry for the inconvenience.

  • MesaMesa
  • mesamesa
  • Repository
Switch branch/tag
  • mesa
  • src
  • broadcom
  • vulkan
  • v3dv_queue.c
Find file BlameHistoryPermalink
  • Maíra Canal's avatar
    v3dv: initialize fd variable for proper error handling · a2252add
    Maíra Canal authored Dec 31, 2022 and Marge Bot's avatar Marge Bot committed Jan 05, 2023
    
    
    Currently, process_singlesync_signals() checks if fd == -1 to handle
    possible errors in the drmSyncobjExportSyncFile function. But, fd is not
    initialized, which means that drmSyncobjExportSyncFile might fail and
    the error will not be handled as fd might not be equal to -1.
    
    Therefore, initialize the fd variable with value -1 to ensure proper
    error handling.
    
    cc: mesa-stable
    
    Signed-off-by: Maíra Canal's avatarMaíra Canal <mcanal@igalia.com>
    Reviewed-by: Iago Toral's avatarIago Toral Quiroga <itoral@igalia.com>
    Part-of: <!20475>
    a2252add