From patchwork Fri Feb 12 19:57:04 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Faisal Latif X-Patchwork-Id: 78959 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o1CJvApx027017 for ; Fri, 12 Feb 2010 19:57:11 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757093Ab0BLT5K (ORCPT ); Fri, 12 Feb 2010 14:57:10 -0500 Received: from mga09.intel.com ([134.134.136.24]:21802 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756710Ab0BLT5J (ORCPT ); Fri, 12 Feb 2010 14:57:09 -0500 Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga102.jf.intel.com with ESMTP; 12 Feb 2010 11:55:55 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.49,462,1262592000"; d="scan'208";a="595557645" Received: from flatif-mobl.amr.corp.intel.com (HELO ctung-MOBL.intel.com) ([10.232.237.209]) by orsmga001.jf.intel.com with SMTP; 12 Feb 2010 11:56:53 -0800 Received: by ctung-MOBL.intel.com (sSMTP sendmail emulation); Fri, 12 Feb 2010 13:57:04 -0600 Date: Fri, 12 Feb 2010 13:57:04 -0600 From: Faisal Latif To: Roland Dreier , -c@vger.kernel.org, linux-rdma@vger.kernel.org Subject: [PATCH 02/02] RDMA/nes: listener destroyed during loopback setup crash Message-ID: <20100212195704.GA71688@flatif-MOBL> Mime-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.4.2.2i Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Fri, 12 Feb 2010 19:57:11 +0000 (UTC) diff --git a/drivers/infiniband/hw/nes/nes_cm.c b/drivers/infiniband/hw/nes/nes_cm.c index debd92c..2a49ee4 100644 --- a/drivers/infiniband/hw/nes/nes_cm.c +++ b/drivers/infiniband/hw/nes/nes_cm.c @@ -1011,9 +1011,10 @@ static int mini_cm_dec_refcnt_listen(struct nes_cm_core *cm_core, event.cm_info.loc_port = loopback->loc_port; event.cm_info.cm_id = loopback->cm_id; + add_ref_cm_node(loopback); + loopback->state = NES_CM_STATE_CLOSED; cm_event_connect_error(&event); cm_node->state = NES_CM_STATE_LISTENER_DESTROYED; - loopback->state = NES_CM_STATE_CLOSED; rem_ref_cm_node(cm_node->cm_core, cm_node);