[openib-general] [PATCH] mad: Validate *bad_send_wr in ib_post_send_mad()
Hal Rosenstock
halr at voltaire.com
Mon Nov 1 15:59:08 PST 2004
mad: Validate *bad_send_wr in ib_post_send_mad()
Index: mad.c
===================================================================
--- mad.c (revision 1109)
+++ mad.c (working copy)
@@ -369,7 +369,7 @@
struct ib_mad_port_private *port_priv;
/* Validate supplied parameters */
- if (!mad_agent || !send_wr) {
+ if (!mad_agent || !send_wr || !*bad_send_wr) {
*bad_send_wr = send_wr;
return -EINVAL;
}
More information about the general
mailing list