Skip to contentSkip to conversation

opensm/osm_vl_arb_rcv.c: fix double mutex release bug

PATCH Applied Line Holen 2 participants 2 messages Jan 27, 2010 1 message not in the archive InfiniBand

lore
Share & tools
lore

Line Holen

author
#0 lore raw

PATCH 1/1 opensm/osm_vl_arb_rcv.c: fix double mutex release bug

The sm lock might be released twice if a response was received for a non existent node.

---

opensm/opensm/osm_vl_arb_rcv.c +1 -1
index 823a9ca..93d9b1d 100644
@@ -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

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): 4B600B39.9080100-UdXhSnd/[email protected]