Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • I ipipe-arm64
  • Project information
    • Project information
    • Activity
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Commits
Collapse sidebar
  • xenomai
  • ipipe-arm64
  • Repository
Switch branch/tag
  • ipipe-arm64
  • fs
  • sysfs
  • file.c
Find file BlameHistoryPermalink
  • Nick Dyer's avatar
    sysfs_notify is only possible on file attributes · fc60bb83
    Nick Dyer authored Jun 07, 2013
    
    
    If sysfs_notify is called on a binary attribute, bad things can
    happen, so prevent it.
    
    Note, no in-kernel usage of this is currently present, but in the
    future, it's good to be safe.
    
    Changes in V2:
    - Also ignore sysfs_notify on dirs, links
    - Use WARN_ON rather than silently failing
    - Compiled and tested (huge apologies about first submission)
    Signed-off-by: default avatarNick Dyer <nick.dyer@itdev.co.uk>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
    fc60bb83

Imprint & Privacy Policy