[ofa-general] [PATCH] opensm/osm_state_mgr.c: fix segmentation fault

Yevgeny Kliteynik kliteyn at dev.mellanox.co.il
Tue May 13 04:15:22 PDT 2008


Hi Sasha,

Fixing trivial segmentation fault in state manager.

Please apply to ofed_1_3 branch and to master.

-- Yevgeny

Signed-off-by: Yevgeny Kliteynik <kliteyn at dev.mellanox.co.il>
---
 opensm/opensm/osm_state_mgr.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/opensm/opensm/osm_state_mgr.c b/opensm/opensm/osm_state_mgr.c
index 4b7235f..6f06a8d 100644
--- a/opensm/opensm/osm_state_mgr.c
+++ b/opensm/opensm/osm_state_mgr.c
@@ -736,9 +736,8 @@ static boolean_t __osm_state_mgr_is_sm_port_down(IN osm_state_mgr_t *
 	if (!p_port) {
 		osm_log(p_mgr->p_log, OSM_LOG_ERROR,
 			"__osm_state_mgr_is_sm_port_down: ERR 3309: "
-			"SM port with GUID:%016" PRIx64 " (%s) is unknown\n",
-			cl_ntoh64(port_guid),
-			p_port->p_node ? p_port->p_node->print_desc : "UNKNOWN");
+			"SM port with GUID:%016" PRIx64 " is unknown\n",
+			cl_ntoh64(port_guid));
 		state = IB_LINK_DOWN;
 		CL_PLOCK_RELEASE(p_mgr->p_lock);
 		goto Exit;
-- 
1.5.1.4




More information about the general mailing list