* [PATCH] opensm: fixed segfault in osm_destroy
@ 2012-01-12 14:14 Alex Netes
2012-01-12 17:07 ` Dale Purdy
0 siblings, 1 reply; 2+ messages in thread
From: Alex Netes @ 2012-01-12 14:14 UTC (permalink / raw)
To: Dale Purdy, Hal Rosenstock, linux-rdma-u79uwXL29TY76Z2rM5mHXA
Fixed segfault in osm_destroy() when hop_weights_file,
port_search_ordering_file or io_guid_file are configured.
The segfault introduced by d71a924736707400bed47a3c69395cf864c970bb.
Signed-off-by: Alex Netes <alexne-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
---
opensm/main.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/opensm/main.c b/opensm/main.c
index 3edc52f..c75d220 100644
--- a/opensm/main.c
+++ b/opensm/main.c
@@ -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:
--
1.7.1
--
-- 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] 2+ messages in thread
* Re: [PATCH] opensm: fixed segfault in osm_destroy
2012-01-12 14:14 [PATCH] opensm: fixed segfault in osm_destroy Alex Netes
@ 2012-01-12 17:07 ` Dale Purdy
0 siblings, 0 replies; 2+ messages in thread
From: Dale Purdy @ 2012-01-12 17:07 UTC (permalink / raw)
To: Alex Netes; +Cc: Hal Rosenstock, linux-rdma-u79uwXL29TY76Z2rM5mHXA
On Thu, 12 Jan 2012, Alex Netes wrote:
> Fixed segfault in osm_destroy() when hop_weights_file,
> port_search_ordering_file or io_guid_file are configured.
>
> The segfault introduced by d71a924736707400bed47a3c69395cf864c970bb.
>
> Signed-off-by: Alex Netes <alexne-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
> ---
> 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 majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-01-12 17:07 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-12 14:14 [PATCH] opensm: fixed segfault in osm_destroy Alex Netes
2012-01-12 17:07 ` Dale Purdy
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.