[ofa-general] [PATCH] opensm/osm_sa.c: fixing SA MAD dump
Yevgeny Kliteynik
kliteyn at dev.mellanox.co.il
Thu Feb 12 06:55:39 PST 2009
Hi Sasha,
osm_sa_send() returns the MAD to the pool after sending it,
so dumping the MAD after sending it is wrong - fixing.
Signed-off-by: Yevgeny Kliteynik <kliteyn at dev.mellanox.co.il>
---
opensm/opensm/osm_sa.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/opensm/opensm/osm_sa.c b/opensm/opensm/osm_sa.c
index 185557f..416d44a 100644
--- a/opensm/opensm/osm_sa.c
+++ b/opensm/opensm/osm_sa.c
@@ -498,9 +498,9 @@ void osm_sa_respond(osm_sa_t *sa, osm_madw_t *madw, size_t attr_size,
free(item);
}
+ osm_dump_sa_mad(sa->p_log, resp_sa_mad, OSM_LOG_FRAMES);
osm_sa_send(sa, resp_madw, FALSE);
- osm_dump_sa_mad(sa->p_log, resp_sa_mad, OSM_LOG_FRAMES);
Exit:
/* need to set the mem free ... */
item = cl_qlist_remove_head(list);
--
1.5.1.4
More information about the general
mailing list