[openib-general] [PATCH] mad: Fix local_completions

Hal Rosenstock halr at voltaire.com
Wed Mar 30 08:49:45 PST 2005


mad: Fix local_completions so receive buffer return does not crash now
that initial RMPP has been introduced

Signed-off-by: Hal Rosenstock <halr at voltaire.com>


Index: mad.c
===================================================================
-- mad.c	(revision 2056)
+++ mad.c	(working copy)
@@ -2116,7 +2116,7 @@
 			local->mad_priv->header.recv_wc.wc = &wc;
 			local->mad_priv->header.recv_wc.mad_len =
 						sizeof(struct ib_mad);
-			INIT_LIST_HEAD(&local->mad_priv->header.recv_wc.recv_buf.list);
+			INIT_LIST_HEAD(&local->mad_priv->header.recv_wc.rmpp_list);
 			local->mad_priv->header.recv_wc.recv_buf.grh = NULL;
 			local->mad_priv->header.recv_wc.recv_buf.mad =
 						&local->mad_priv->mad.mad;





More information about the general mailing list