Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • I ipipe-x86
  • Project information
    • Project information
    • Activity
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Activity
  • Graph
  • Commits
Collapse sidebar
  • xenomai
  • ipipe-x86
  • Repository
Switch branch/tag
  • ipipe-x86
  • drivers
  • staging
  • comedi
  • drivers
  • rtd520.c
Find file BlameHistoryPermalink
  • H Hartley Sweeten's avatar
    staging: comedi: drivers: core validates chanlist_len max · 860b7c39
    H Hartley Sweeten authored Apr 17, 2014
    
    
    The comedi core checks if the (cmd->chanlist_len > s->len_chanlist) when the
    comedi_cmd is copied from user to kernel space by __comedi_get_user_cmd().
    If so, the core returns -EINVAL and will not call the subdevice (*do_cmdtest)
    and (*do_cmd).
    
    Remove the unnecessary "max" checks in the comedi driver (*do_cmdtest) and
    helper functions.
    Signed-off-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
    Reviewed-by: default avatarIan Abbott <abbotti@mev.co.uk>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
    860b7c39

Imprint & Privacy Policy