On Wed, 2005-05-04 at 17:51, Sean Hefty wrote: > Can you try with this patch? > > Signed-off-by: Sean Hefty <[EMAIL PROTECTED]> > > Index: core/mad.c > =================================================================== > -- core/mad.c (revision 2256) > +++ core/mad.c (working copy) > @@ -796,9 +796,9 @@ > buf = kmalloc(sizeof *send_buf + buf_size, gfp_mask); > if (!buf) > return ERR_PTR(-ENOMEM); > + memset(buf, 0, sizeof *send_buf + buf_size); > > send_buf = buf + buf_size; > - memset(send_buf, 0, sizeof *send_buf); > send_buf->mad = buf; > > send_buf->sge.addr = dma_map_single(mad_agent->device->dma_device,
Yes, that looks better in terms of clearing the padding. I still need to double check my math on the PayloadLengths. Thanks. -- Hal _______________________________________________ openib-general mailing list [email protected] http://openib.org/mailman/listinfo/openib-general To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general
