OpenSM/osm_prtn_config.c: Fix non-initialized pointer usage
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
@@ -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