[ofa-general] ***SPAM*** [PATCH] opensm/osm_req.c: Shouldn't reveal port's MKey on Trap method

Hal Rosenstock hnrose at comcast.net
Mon Mar 9 04:00:20 PDT 2009


Signed-off-by: Hal Rosenstock <hal.rosenstock at gmail.com>

---
diff --git a/opensm/opensm/osm_req.c b/opensm/opensm/osm_req.c
index 2e851b2..d5ce37a 100644
--- a/opensm/opensm/osm_req.c
+++ b/opensm/opensm/osm_req.c
@@ -257,7 +257,7 @@ int osm_send_trap144(osm_sm_t *sm, ib_net16_t local)
 	smp->method = IB_MAD_METHOD_TRAP;
 	smp->trans_id = cl_hton64((uint64_t)cl_atomic_inc(&sm->sm_trans_id));
 	smp->attr_id = IB_MAD_ATTR_NOTICE;
-	smp->m_key = sm->p_subn->opt.m_key;
+	smp->m_key = 0;
 
 	ntc = (ib_mad_notice_attr_t *)smp->data;
 



More information about the general mailing list