Commit 753fff78 authored by Jack Wang's avatar Jack Wang Committed by Leon Romanovsky

RDMA/IPoIB: Fix error code return in ipoib_mcast_join

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.comSigned-off-by: default avatarLeon Romanovsky <leon@kernel.org>
parent 64023325
......@@ -546,6 +546,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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment