[openib-general] [PATCH]return the wrong bad_send_wr in ib_send_mad()
Shirley Ma
mashirle at us.ibm.com
Mon Nov 1 15:47:47 PST 2004
Another patch to fix wrong bad_send_wr in ib_send_mad()
diff -urN access/mad.c access.patch4/mad.c
--- access/mad.c 2004-11-01 14:51:41.000000000 -0800
+++ access.patch4/mad.c 2004-11-01 15:44:08.173513376 -0800
@@ -347,10 +347,8 @@
list_add_tail(&mad_send_wr->send_list,
&port_priv->send_posted_mad_list);
port_priv->send_posted_mad_count++;
- } else {
+ } else
printk(KERN_NOTICE PFX "ib_post_send failed ret = %d\n", ret);
- *bad_send_wr = send_wr;
- }
spin_unlock_irqrestore(&port_priv->send_list_lock, flags);
return ret;
}
--
Thanks
Shirley Ma
IBM Linux Technology Center
More information about the general
mailing list