From patchwork Wed Jan 27 09:45:29 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Line.Holen@Sun.COM X-Patchwork-Id: 75426 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 o0RA7733024725 for ; Wed, 27 Jan 2010 10:07:07 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752875Ab0A0KHG (ORCPT ); Wed, 27 Jan 2010 05:07:06 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752887Ab0A0KHG (ORCPT ); Wed, 27 Jan 2010 05:07:06 -0500 Received: from gmp-eb-inf-1.sun.com ([192.18.6.21]:41502 "EHLO gmp-eb-inf-1.sun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752875Ab0A0KHE (ORCPT ); Wed, 27 Jan 2010 05:07:04 -0500 X-Greylist: delayed 1258 seconds by postgrey-1.27 at vger.kernel.org; Wed, 27 Jan 2010 05:07:04 EST Received: from fe-emea-09.sun.com (gmp-eb-lb-1-fe1.eu.sun.com [192.18.6.7] (may be forged)) by gmp-eb-inf-1.sun.com (8.13.7+Sun/8.12.9) with ESMTP id o0R9k0Ek011366 for ; Wed, 27 Jan 2010 09:46:00 GMT MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII Received: from conversion-daemon.fe-emea-09.sun.com by fe-emea-09.sun.com (Sun Java(tm) System Messaging Server 7u2-7.04 64bit (built Jul 2 2009)) id <0KWW00D00EFRPX00@fe-emea-09.sun.com> for linux-rdma@vger.kernel.org; Wed, 27 Jan 2010 09:45:35 +0000 (GMT) Received: from [129.159.138.141] ([unknown] [129.159.138.141]) by fe-emea-09.sun.com (Sun Java(tm) System Messaging Server 7u2-7.04 64bit (built Jul 2 2009)) with ESMTPSA id <0KWW00ADYGFTGY20@fe-emea-09.sun.com>; Wed, 27 Jan 2010 09:45:30 +0000 (GMT) Date: Wed, 27 Jan 2010 10:45:29 +0100 From: Line Holen Subject: [PATCH] opensm/osm_vl_arb_rcv.c: fix double mutex release bug To: sashak@voltaire.com Cc: linux-rdma@vger.kernel.org Message-id: <4B600B39.9080100@Sun.COM> User-Agent: Thunderbird 2.0.0.23 (X11/20090910) 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_vl_arb_rcv.c b/opensm/opensm/osm_vl_arb_rcv.c index 823a9ca..93d9b1d 100644 --- a/opensm/opensm/osm_vl_arb_rcv.c +++ b/opensm/opensm/osm_vl_arb_rcv.c @@ -3,6 +3,7 @@ * Copyright (c) 2002-2005 Mellanox Technologies LTD. All rights reserved. * Copyright (c) 1996-2003 Intel Corporation. All rights reserved. * Copyright (c) 2010 HNR Consulting. All rights reserved. + * Copyright (c) 2010 Sun Microsystems, Inc. All rights reserved. * * This software is available to you under a choice of one of two * licenses. You may choose to be licensed under the terms of the GNU @@ -92,7 +93,6 @@ void osm_vla_rcv_process(IN void *context, IN void *data) cl_plock_excl_acquire(sm->p_lock); 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 3F06: " "No port object for port with GUID 0x%" PRIx64 "\n\t\t\t\tfor parent node GUID 0x%" PRIx64