diff options
author | Karsten Graul <[email protected]> | 2020-04-29 17:10:39 +0200 |
---|---|---|
committer | David S. Miller <[email protected]> | 2020-04-29 12:26:32 -0700 |
commit | 026c381fb4778d0d44af57b7ff674f31f04af221 (patch) | |
tree | 0680bad4f4f97ff9d8b9379e105be11915b6cd2d /lib/test_overflow.c | |
parent | f3c1deddb21c19fb0eec3c61e80567ef4a79b58b (diff) |
net/smc: introduce link_idx for link group array
The link_id is the index of the link in the array of the link group.
When a link in the array is reused for a new link, a different unique
link_id should be used, otherwise the index in the array could collide
with the previous link at this array position.
Use a new variable link_idx as array index, and make link_id an
increasing unique id value.
Signed-off-by: Karsten Graul <[email protected]>
Reviewed-by: Ursula Braun <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions