[openib-general] [librdmacm] a question about the cma code

Sean Hefty mshefty at ichips.intel.com
Tue Aug 8 09:08:17 PDT 2006


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.

Thanks,
Sean




More information about the general mailing list