Message ID | 1289599882-15165-9-git-send-email-jaschut@sandia.gov (mailing list archive) |
---|---|
State | Not Applicable, archived |
Headers | show |
diff --git a/opensm/opensm/osm_torus.c b/opensm/opensm/osm_torus.c index 8e0435b..add3cf9 100644 --- a/opensm/opensm/osm_torus.c +++ b/opensm/opensm/osm_torus.c @@ -782,6 +782,12 @@ bool parse_torus(struct torus *t, const char *parse_sep) char *ptr; bool success = false; + /* + * There can be only one. Ignore the imposters. + */ + if (t->sw_pool) + goto out; + if (!parse_size(&t->x_sz, &t->flags, X_MESH, parse_sep)) goto out;