[PATCH] opensm/osm_slvl_map_rcv.c: fix mutex double release bug

Sasha Khapyorsky
2009-12-29T15:06:24Z

In case when response was received for non-existing port (for example
when it was dropped after querying) OpenSM data structures access mutex
will be released twice. Fix this.

Signed-off-by: Sasha Khapyorsky <sashak-smomgflXvOZWk0Htik3J/w@public.gmane.org>
---
opensm/opensm/osm_slvl_map_rcv.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)

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
--
1.6.6.rc4