[ofa-general] [PATCH] infiniband-diags: fix lid setup in NodeRecord
Sasha Khapyorsky
sashak at voltaire.com
Thu Jan 29 03:52:56 PST 2009
Lid value should be initialized to prevent garbage encoding in
NodeRecord query.
Signed-off-by: Sasha Khapyorsky <sashak at voltaire.com>
---
infiniband-diags/src/saquery.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/infiniband-diags/src/saquery.c b/infiniband-diags/src/saquery.c
index c62bf42..84f3c91 100644
--- a/infiniband-diags/src/saquery.c
+++ b/infiniband-diags/src/saquery.c
@@ -1059,7 +1059,7 @@ static int query_node_records(const struct query_cmd *q,
{
ib_node_record_t nr;
ib_net64_t comp_mask = 0;
- int lid;
+ int lid = 0;
ib_api_status_t status;
if (argc > 0)
--
1.6.0.4.766.g6fc4a
More information about the general
mailing list