Signed-off-by: Jim Schutt <[email protected]>
---
opensm/opensm/osm_torus.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
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;
--
1.6.2.2
--
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