rdma_join_multicast re-initializes id_priv->cond rather than mc->cond. Fix this. Bug reported by Nir Naaman.
Signed-off-by: Sean Hefty <[email protected]> --- src/cma.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/cma.c b/src/cma.c index 87e73ac..e4bc8d6 100644 --- a/src/cma.c +++ b/src/cma.c @@ -1044,7 +1044,7 @@ int rdma_join_multicast(struct rdma_cm_id *id, struct sockaddr *addr, mc->context = context; mc->id_priv = id_priv; memcpy(&mc->addr, addr, addrlen); - if (pthread_cond_init(&id_priv->cond, NULL)) { + if (pthread_cond_init(&mc->cond, NULL)) { ret = -1; goto err1; } -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
