opensm: fixed segfault in osm_destroy
PATCH 1/1 opensm: fixed segfault in osm_destroy
Fixed segfault in osm_destroy() when hop_weights_file, port_search_ordering_file or io_guid_file are configured.
The segfault introduced by d71a924736707400bed47a3c69395cf864c970bb.
--- opensm/main.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
opensm/main.c +3 -3
@@ -724,13 +724,13 @@ int main(int argc, char *argv[])break ;case 'w' : - opt.hop_weights_file = optarg; +SET_STR_OPT (opt.hop_weights_file, optarg);printf (" Hop Weights File = %s\n" , opt.hop_weights_file);break ;case 'O' : - opt.port_search_ordering_file = optarg; +SET_STR_OPT (opt.port_search_ordering_file, optarg);printf (" Port Search Ordering/Dimension Ports File = %s\n" , opt.port_search_ordering_file);break ;
@@ -959,7 +959,7 @@ int main(int argc, char *argv[])break ;case 'G' : - opt.io_guid_file = optarg; +SET_STR_OPT (opt.io_guid_file, optarg);printf (" I/O Node Guid File: %s\n" , opt.io_guid_file);break ;case 11 :
Signature · 9 lines
1.7.1 -- -- 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
Quoted 10 lines · Alex Netes
Fixed segfault in
osm_destroy()whenhop_weights_file,port_search_ordering_fileorio_guid_fileare configured.The segfault introduced by
d71a924736707400bed47a3c69395cf864c970bb.---
opensm/main.c| 6 +++---1 files changed, 3 insertions(+), 3 deletions(-)
The fix looks good, and works too! Thanks.
Dale
--
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