net/smc: Scan from current RMB list when no position specified
authorWen Gu <guwen@linux.alibaba.com>
Fri, 26 May 2023 11:49:00 +0000 (19:49 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 9 Jun 2023 08:34:03 +0000 (10:34 +0200)
commit8c3ec8e7895e8358e4e2b2fa274a91f667038534
treeece6a2d949552d6a6036fe019533dc68824ae0f4
parent752836e1a206ac817d30b833a41c8cbff60756f6
net/smc: Scan from current RMB list when no position specified

[ Upstream commit b24aa141c2ff26c919237aee61ea1818fc6780d9 ]

When finding the first RMB of link group, it should start from the
current RMB list whose index is 0. So fix it.

Fixes: b4ba4652b3f8 ("net/smc: extend LLC layer for SMC-Rv2")
Signed-off-by: Wen Gu <guwen@linux.alibaba.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/smc/smc_llc.c