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
  • linux
  • drivers
  • input
  • input.c
Find file BlameHistoryPermalink
  • Hans de Goede's avatar
    Input: set EV_ABS in dev->evbit even if input_alloc_absinfo() fails · 3f9ed5c2
    Hans de Goede authored Feb 28, 2022
    
    
    The input core's error handling for input_alloc_absinfo() failures
    is based on ignoring the error until input_register_device() runs
    and then checks for the failure like this:
    
            if (test_bit(EV_ABS, dev->evbit) && !dev->absinfo) {
                    dev_err(&dev->dev, ...);
                    return -EINVAL;
            }
    
    This relies on EV_ABS actually getting set in dev->evbit even
    if input_alloc_absinfo() fails, change input_set_abs_params() and
    input_set_capability() to actually adhere to this.
    
    Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
    Link: https://lore.kernel.org/r/20220131143539.109142-1-hdegoede@redhat.com
    
    
    Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
    3f9ed5c2
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7