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
  • net
  • strparser
  • strparser.c
Find file BlameHistoryPermalink
  • Geert Uytterhoeven's avatar
    strparser: Propagate correct error code in strp_recv() · 6d3a4c40
    Geert Uytterhoeven authored Oct 06, 2016
    With m68k-linux-gnu-gcc-4.1:
    
        net/strparser/strparser.c: In function ‘strp_recv’:
        net/strparser/strparser.c:98: warning: ‘err’ may be used uninitialized in this function
    
    Pass "len" (which is an error code when negative) instead of the
    uninitialized "err" variable to fix this.
    
    Fixes: 43a0c675
    
     ("strparser: Stream parser for messages")
    Signed-off-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    6d3a4c40
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7