Skip to content
GitLab
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
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Commits
Collapse sidebar
  • xenomaixenomai
  • ipipe-arm64
  • Repository
Switch branch/tag
  • ipipe-arm64
  • fs
  • proc
  • base.c
Find file BlameHistoryPermalink
  • Akinobu Mita's avatar
    fault-inject: make fail-nth read/write interface symmetric · bfc74093
    Akinobu Mita authored Jul 14, 2017
    The read interface for fail-nth looks a bit odd.  Read from this file
    returns "NYYYY..." or "YYYYY..." (this makes me surprise when cat this
    file).  Because there is no EOF condition.  The first character
    indicates current->fail_nth is zero or not, and then current->fail_nth
    is reset to zero.
    
    Just returning task->fail_nth value is more natural to understand.
    
    Link: http://lkml.kernel.org/r/1491490561-10485-4-git-send-email-akinobu.mita@gmail.com
    
    
    Signed-off-by: default avatarAkinobu Mita <akinobu.mita@gmail.com>
    Cc: Dmitry Vyukov <dvyukov@google.com>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    bfc74093

Imprint & Privacy Policy