[ofa-general] [PATCH] Fix umad_get_cas_names() usage in libibumad.
Arne Redlich
arne.redlich at xiranet.com
Fri Sep 7 06:36:14 PDT 2007
resolve_ca_name() passes a wrong "max" argument to umad_get_cas_names.
Signed-off-by: Arne Redlich <arne.redlich at xiranet.com>
---
diff --git a/libibumad/src/umad.c b/libibumad/src/umad.c
index 787aa92..589684c 100644
--- a/libibumad/src/umad.c
+++ b/libibumad/src/umad.c
@@ -307,7 +307,7 @@ resolve_ca_name(char *ca_name, int *best_port)
}
/* Get the list of CA names */
- if ((n = umad_get_cas_names((void *)names, UMAD_CA_NAME_LEN)) < 0)
+ if ((n = umad_get_cas_names((void *)names, 20)) < 0)
return 0;
/* Find the first existing CA with an active port */
--
1.5.2.1
More information about the general
mailing list