Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • L linux-qy
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • linux-arm
  • linux-qy
  • Repository
Switch branch/tag
  • linux-qy
  • drivers
  • gpu
  • drm
  • i915
  • gvt
  • dmabuf.c
Find file BlameHistoryPermalink
  • Pan Bian's avatar
    drm/i915/gvt: fix dropping obj reference twice · 41d93145
    Pan Bian authored Nov 06, 2019
    The reference count of obj will be decremented twice if error occurs
    in dma_buf_fd(). Additionally, attempting to read the reference count of
    obj after dropping reference may lead to a use after free bug. Here, we
    drop obj's reference until it is not used.
    
    Fixes: e546e281
    
     ("drm/i915/gvt: Dmabuf support for GVT-g")
    Signed-off-by: default avatarPan Bian <bianpan2016@163.com>
    Reviewed-by: default avatarZhenyu Wang <zhenyuw@linux.intel.com>
    Signed-off-by: default avatarZhenyu Wang <zhenyuw@linux.intel.com>
    41d93145