Skip to contentSkip to conversation

opensm/osm_sm_mad_ctrl.c: Add missing call to return mad to mad pool

PATCH Applied Hal Rosenstock 2 participants 2 messages Dec 3, 2009 – Dec 13, 2009 1 message not in the archive InfiniBand

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 opensm/osm_sm_mad_ctrl.c: Add missing call to return mad to mad pool

when the attribute is unknown in sm_mad_ctrl_process_get_resp

---

opensm/opensm/osm_sm_mad_ctrl.c +1 -0
index 0ccc327..a58b3f4 100644
@@ -257,6 +257,7 @@ static void sm_mad_ctrl_process_get_resp(IN osm_sm_mad_ctrl_t * p_ctrl,
 			"Unsupported attribute 0x%X\n",
 			cl_ntoh16(p_smp->attr_id));
 		osm_dump_dr_smp(p_ctrl->p_log, p_smp, OSM_LOG_ERROR);
+		osm_mad_pool_put(p_ctrl->p_mad_pool, p_madw);
 		goto Exit;
 	}
 

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html