Skip to contentSkip to conversation

OpenSM/osm_prtn_config.c: Fix non-initialized pointer usage

PATCH New Alex Netes 1 participant 1 message Apr 10, 2012 InfiniBand

lore
Share & tools
lore

Alex Netes

author
#0 lore raw

PATCH 1/1 OpenSM/osm_prtn_config.c: Fix non-initialized pointer usage

If conf wasn't initialized, use p_log pointer to print to the log directly.

---
 opensm/osm_prtn_config.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
opensm/osm_prtn_config.c +1 -1
index bc53148..3d5d79e 100644
@@ -727,7 +727,7 @@ int osm_prtn_config_parse_file(osm_log_t * p_log, osm_subn_t * p_subn,
 				break;
 
 			if (!conf && !(conf = new_part_conf(p_log, p_subn))) {
-				OSM_LOG(conf->p_log, OSM_LOG_ERROR,
+				OSM_LOG(p_log, OSM_LOG_ERROR,
 					"PARSE ERROR: line %d: "
 					"internal: cannot create config\n",
 					lineno);
Signature · 7 lines
1.7.7.6

-- Alex
--
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