[PATCH] infiniband-diags: saquery, properly free mad inget_and_dump_any_records

From: Ira Weiny
Date: Wed Apr 13 2011 - 12:49:14 EST



Subject: [PATCH] infiniband-diags: saquery, properly free mad in get_and_dump_any_records

Signed-off-by: Ira Weiny <weiny2@xxxxxxxx>
---
src/saquery.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/saquery.c b/src/saquery.c
index 03869e3..b8f2e41 100644
--- a/src/saquery.c
+++ b/src/saquery.c
@@ -877,7 +877,7 @@ static int get_and_dump_any_records(bind_handle_t h, uint16_t attr_id,
return ret;

dump_results(&result, dump_func);
-
+ return_mad();
return 0;
}

--
1.7.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/