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
  • include
  • net
  • mctp.h
Find file BlameHistoryPermalink
  • Jeremy Kerr's avatar
    net: mctp: avoid confusion over local/peer dest/source addresses · ee076b73
    Jeremy Kerr authored Feb 19, 2024
    
    
    We have a double-swap of local and peer addresses in
    mctp_alloc_local_tag; the arguments in both call sites are swapped, but
    there is also a swap in the implementation of alloc_local_tag. This is
    opaque because we're using source/dest address references, which don't
    match the local/peer semantics.
    
    Avoid this confusion by naming the arguments as 'local' and 'peer', and
    remove the double swap. The calling order now matches mctp_key_alloc.
    
    Signed-off-by: default avatarJeremy Kerr <jk@codeconstruct.com.au>
    Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
    ee076b73
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7