From patchwork Tue Dec 29 15:06:24 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sasha Khapyorsky X-Patchwork-Id: 70107 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.2) with ESMTP id nBTF2Vvb028752 for ; Tue, 29 Dec 2009 15:03:26 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752046AbZL2PD0 (ORCPT ); Tue, 29 Dec 2009 10:03:26 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752397AbZL2PD0 (ORCPT ); Tue, 29 Dec 2009 10:03:26 -0500 Received: from mail-ew0-f219.google.com ([209.85.219.219]:58351 "EHLO mail-ew0-f219.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752046AbZL2PDZ (ORCPT ); Tue, 29 Dec 2009 10:03:25 -0500 Received: by ewy19 with SMTP id 19so2778042ewy.21 for ; Tue, 29 Dec 2009 07:03:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:received:date:from:to :cc:subject:message-id:references:mime-version:content-type :content-disposition:in-reply-to:user-agent; bh=fRM3aAxYGgDUQ2vthRHJuKiCda2RtwbVxNaGMUKjvlI=; b=FEhDQ73MuSAfybuWm733bhzlouia7za6QJMxDk8Not00omYQdYrqsxNRLO/nNoT15J EtPHNqyPmC1hul1kQivWTYdzkrVCUDa++E5V96WTNjbhyQYv521kxoqT0u8xHkNXh3wu plxMp9qpB6QkhN2HmrV8JQuV7CgKEpDEJDcxA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=jX3ryzDh5Oa4rXaMoPXW8qY9k0qHTQqtKRpUN+byvQ+izZD41SjPk4W4LYmhoXSrVf EfmAMBSYiMo+Y1rTG/nY5KOr0X3vtc5Ddty/SIpeJ2gU9SRom081nmzodeQ6r789vmJm ESPB0CYmyZuHxxyalt39SQuErbyqwkUbqvNj4= Received: by 10.213.102.133 with SMTP id g5mr9980120ebo.43.1262099002512; Tue, 29 Dec 2009 07:03:22 -0800 (PST) Received: from me.localdomain (85.64.35.106.dynamic.barak-online.net [85.64.35.106]) by mx.google.com with ESMTPS id 10sm26235401eyz.47.2009.12.29.07.03.21 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 29 Dec 2009 07:03:21 -0800 (PST) Received: by me.localdomain (Postfix, from userid 1000) id 9C22511DF8; Tue, 29 Dec 2009 17:06:24 +0200 (IST) Date: Tue, 29 Dec 2009 17:06:24 +0200 From: Sasha Khapyorsky To: linux-rdma@vger.kernel.org Cc: Hal Rosenstock Subject: [PATCH] opensm/osm_slvl_map_rcv.c: fix mutex double release bug Message-ID: <20091229150624.GW26940@me> References: <20091201194110.GA26753@comcast.net> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20091201194110.GA26753@comcast.net> User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org diff --git a/opensm/opensm/osm_slvl_map_rcv.c b/opensm/opensm/osm_slvl_map_rcv.c index 3b24a8e..b35d867 100644 --- a/opensm/opensm/osm_slvl_map_rcv.c +++ b/opensm/opensm/osm_slvl_map_rcv.c @@ -91,7 +91,6 @@ void osm_slvl_rcv_process(IN void *context, IN void *p_data) p_port = osm_get_port_by_guid(sm->p_subn, port_guid); if (!p_port) { - cl_plock_release(sm->p_lock); OSM_LOG(sm->p_log, OSM_LOG_ERROR, "ERR 2C06: " "No port object for port with GUID 0x%" PRIx64 "\n\t\t\t\tfor parent node GUID 0x%" PRIx64