Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • L linux
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Smelkov
  • linux
  • Repository
You need to sign in or sign up before continuing.
  • linux
  • drivers
  • input
  • evdev.c
Find file BlameHistoryPermalink
  • Dima Zavin's avatar
    Input: evdev - only allow reading events if a full packet is present · 566cf5b6
    Dima Zavin authored Dec 30, 2011
    
    
    Without this, it was possible for the reader to get ahead of packet_head.
    If the input device generated a partial packet *right* after the reader
    got ahead, then we can get into a situation where the device is marked
    readable, but read always returns 0 until the next packet is finished
    (i.e a SYN is generated by the input driver).
    
    This situation can also happen if we overflow the buffer while a reader
    is trying to read an event out.
    
    Signed-off-by: default avatarDima Zavin <dima@android.com>
    Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
    566cf5b6
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7