Commit c72a5488 authored by Jack Wang's avatar Jack Wang Committed by openeuler-sync-bot
Browse files

RDMA/IPoIB: Fix error code return in ipoib_mcast_join

stable inclusion
from stable-v5.10.210
commit 3a1da8abd772b39414149a90d262cbbd44b73a37
category: bugfix
bugzilla: https://gitee.com/src-openeuler/kernel/issues/I96G8W
CVE: CVE-2023-52587

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=3a1da8abd772b39414149a90d262cbbd44b73a37



--------------------------------

[ Upstream commit 753fff78f430704548f45eda52d6d55371a52c0f ]

Return the error code in case of ib_sa_join_multicast fail.

Signed-off-by: default avatarJack Wang <jinpu.wang@ionos.com>
Link: https://lore.kernel.org/r/20231121130316.126364-2-jinpu.wang@ionos.com


Signed-off-by: default avatarLeon Romanovsky <leon@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarYu Liao <liaoyu15@huawei.com>
(cherry picked from commit 77764e5a)
parent ee86a998
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -557,6 +557,7 @@ static int ipoib_mcast_join(struct net_device *dev, struct ipoib_mcast *mcast)
		spin_unlock_irq(&priv->lock);
		complete(&mcast->done);
		spin_lock_irq(&priv->lock);
		return ret;
	}
	return 0;
}