diff options
| author | Jeremy Kerr <[email protected]> | 2024-02-19 09:51:46 +0000 |
|---|---|---|
| committer | Paolo Abeni <[email protected]> | 2024-02-22 12:32:54 +0000 |
| commit | ee076b73e576b0a052d5686d873346b285ae50ea (patch) | |
| tree | da7b0a7fb218ff29eebeb3b7d431805cac60bb9c /net/mctp/test/utils.c | |
| parent | PPPoL2TP: Add more code snippets (diff) | |
| download | kernel-ee076b73e576b0a052d5686d873346b285ae50ea.tar.gz kernel-ee076b73e576b0a052d5686d873346b285ae50ea.zip | |
net: mctp: avoid confusion over local/peer dest/source addresses
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: Jeremy Kerr <[email protected]>
Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'net/mctp/test/utils.c')
0 files changed, 0 insertions, 0 deletions
