* [PATCH] OpenSM/osm_prtn_config.c: Fix non-initialized pointer usage
@ 2012-04-10 8:58 Alex Netes
0 siblings, 0 replies; only message in thread
From: Alex Netes @ 2012-04-10 8:58 UTC (permalink / raw)
To: linux-rdma-u79uwXL29TY76Z2rM5mHXA
If conf wasn't initialized, use p_log pointer to print to the log
directly.
Signed-off-by: Alex Netes <alexne-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
---
opensm/osm_prtn_config.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/opensm/osm_prtn_config.c b/opensm/osm_prtn_config.c
index bc53148..3d5d79e 100644
--- a/opensm/osm_prtn_config.c
+++ b/opensm/osm_prtn_config.c
@@ -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);
--
1.7.7.6
-- Alex
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2012-04-10 8:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-10 8:58 [PATCH] OpenSM/osm_prtn_config.c: Fix non-initialized pointer usage Alex Netes
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox