public inbox for linux-rdma@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] librdmacm: initialize correct pthread condition in rdma_join_multicast
@ 2009-10-21 18:47 Sean Hefty
       [not found] ` <04702C2CBECB44E5A2D3D3495EA0378B-Zpru7NauK7drdx17CPfAsdBPR1lH4CV8@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Sean Hefty @ 2009-10-21 18:47 UTC (permalink / raw)
  To: Linux RDMA list

rdma_join_multicast re-initializes id_priv->cond rather than mc->cond.
Fix this.  Bug reported by Nir Naaman.

Signed-off-by: Sean Hefty <sean.hefty-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
---

 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 majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] librdmacm: initialize correct pthread condition in rdma_join_multicast
       [not found] ` <04702C2CBECB44E5A2D3D3495EA0378B-Zpru7NauK7drdx17CPfAsdBPR1lH4CV8@public.gmane.org>
@ 2009-10-22 15:13   ` Or Gerlitz
  0 siblings, 0 replies; 2+ messages in thread
From: Or Gerlitz @ 2009-10-22 15:13 UTC (permalink / raw)
  To: Sean Hefty; +Cc: Linux RDMA list, Alex Rosenbaum, Nir Naaman

Sean Hefty wrote:
> rdma_join_multicast re-initializes id_priv->cond rather than mc->cond. Fix this.  Bug reported by Nir Naaman
any idea what's the impact of this bug?

Or.

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-10-22 15:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-21 18:47 [PATCH] librdmacm: initialize correct pthread condition in rdma_join_multicast Sean Hefty
     [not found] ` <04702C2CBECB44E5A2D3D3495EA0378B-Zpru7NauK7drdx17CPfAsdBPR1lH4CV8@public.gmane.org>
2009-10-22 15:13   ` Or Gerlitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox