]> git.baikalelectronics.ru Git - kernel.git/commit
net/smc: Make sure the link_id is unique
authorWen Gu <guwen@linux.alibaba.com>
Mon, 15 Nov 2021 09:45:07 +0000 (17:45 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 15 Nov 2021 14:42:24 +0000 (14:42 +0000)
commitc870684a043e7a6c1c82a9cf7c85993dba99ff1f
tree2f0b4def1efc452c8e88cd31eab40a3d9f42b7b4
parent82630568ae4a73f04de3835aa6e728a3421ac501
net/smc: Make sure the link_id is unique

The link_id is supposed to be unique, but smcr_next_link_id() doesn't
skip the used link_id as expected. So the patch fixes this.

Fixes: d0130f3f62ba ("net/smc: introduce link_idx for link group array")
Signed-off-by: Wen Gu <guwen@linux.alibaba.com>
Reviewed-by: Tony Lu <tonylu@linux.alibaba.com>
Acked-by: Karsten Graul <kgraul@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/smc/smc_core.c