From patchwork Wed Oct 21 18:47:17 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Hefty, Sean" X-Patchwork-Id: 55156 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n9LIlYaS002732 for ; Wed, 21 Oct 2009 18:47:34 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754715AbZJUSrN (ORCPT ); Wed, 21 Oct 2009 14:47:13 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754703AbZJUSrN (ORCPT ); Wed, 21 Oct 2009 14:47:13 -0400 Received: from mga02.intel.com ([134.134.136.20]:15613 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932075AbZJUSrM (ORCPT ); Wed, 21 Oct 2009 14:47:12 -0400 Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP; 21 Oct 2009 11:31:12 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.44,599,1249282800"; d="scan'208";a="459933649" Received: from mshefty-mobl2.amr.corp.intel.com (HELO msheftyMOBL2) ([10.24.91.189]) by orsmga002.jf.intel.com with ESMTP; 21 Oct 2009 11:52:54 -0700 From: "Sean Hefty" To: "Linux RDMA list" Subject: [PATCH] librdmacm: initialize correct pthread condition in rdma_join_multicast Date: Wed, 21 Oct 2009 11:47:17 -0700 Message-ID: <04702C2CBECB44E5A2D3D3495EA0378B@amr.corp.intel.com> MIME-Version: 1.0 X-Mailer: Microsoft Office Outlook 11 Thread-Index: AcpSful/QE+1KqINQDe4tkezSTFnlA== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org 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; }