Quoting r. Sean Hefty <[EMAIL PROTECTED]>:
> Subject: Re: [librdmacm] a question about the cma code
> 
> Dotan Barak wrote:
> >         if (src->private_data && src->private_data_len) {
> >                 memcpy(dst->private_data, src->private_data,
> >                        src->private_data_len);
> >                 dst->private_data_len = src->private_data_len;
> >         } else
> >                 src->private_data_len = 0;
> > }
> > 
> > What is the purpose of the following code line:
> >  src->private_data_len = 0;
> 
> That's a bug.  I just committed a fix to set dst->private_data_len = 0 
> instead.

Isn't the whole command memset to 0 before hand?
Maybe just remove the line?

-- 
MST

_______________________________________________
openib-general mailing list
[email protected]
http://openib.org/mailman/listinfo/openib-general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general

Reply via email to