[ofa-general] ***SPAM*** [PATCH] opensm/osm_inform.c: In __osm_send_report, make sure p_report_madw valid before using
Hal Rosenstock
hnrose at comcast.net
Mon Mar 9 04:01:17 PDT 2009
Signed-off-by: Hal Rosenstock <hal.rosenstock at gmail.com>
---
diff --git a/opensm/opensm/osm_inform.c b/opensm/opensm/osm_inform.c
index 6763a2a..f0dab30 100644
--- a/opensm/opensm/osm_inform.c
+++ b/opensm/opensm/osm_inform.c
@@ -326,8 +326,6 @@ static ib_api_status_t __osm_send_report(IN osm_infr_t * p_infr_rec, /* the info
p_infr_rec->h_bind, MAD_BLOCK_SIZE,
&(p_infr_rec->report_addr));
- p_report_madw->resp_expected = TRUE;
-
if (!p_report_madw) {
OSM_LOG(p_log, OSM_LOG_ERROR, "ERR 0203"
"osm_mad_pool_get failed\n");
@@ -335,6 +333,8 @@ static ib_api_status_t __osm_send_report(IN osm_infr_t * p_infr_rec, /* the info
goto Exit;
}
+ p_report_madw->resp_expected = TRUE;
+
/* advance trap trans id (cant simply ++ on some systems inside ntoh) */
p_mad = osm_madw_get_mad_ptr(p_report_madw);
ib_mad_init_new(p_mad, IB_MCLASS_SUBN_ADM, 2, IB_MAD_METHOD_REPORT,
More information about the general
mailing list