Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • xserver xserver
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 923
    • Issues 923
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 128
    • Merge requests 128
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • xorgxorg
  • xserverxserver
  • Merge requests
  • !435

xwayland: Clear private on device removal

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Olivier Fourdan requested to merge ofourdan/xserver:issue709 into master May 05, 2020
  • Overview 2
  • Commits 1
  • Pipelines 7
  • Changes 1

Xwayland uses the device private to point to the xwl_seat.

Device may be removed at any time, including on suspend.

On resume, if the DIX code ends up calling a function that requires the xwl_seat such as xwl_set_cursor() we may end up pointing at random data.

Make sure the clear the device private data on removal so that we don't try to use it and crash later.

Signed-off-by: Olivier Fourdan ofourdan@redhat.com #709 (closed)

Edited May 05, 2020 by Olivier Fourdan
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: issue709