Quoting r. Sean Hefty <[EMAIL PROTECTED]>:
> @@ -1486,7 +1486,8 @@ static void cma_format_hdr(void *hdr, en
>       switch (ps) {
>       case RDMA_PS_SDP:
>               sdp_hdr = hdr;
> -             sdp_hdr->sdp_version = SDP_VERSION;
> +             if (sdp_hdr->sdp_version != SDP_VERSION)
> +                     return -EINVAL;
>               sdp_set_ip_ver(sdp_hdr, 4);
>               sdp_hdr->src_addr.ip4.addr = src4->sin_addr.s_addr;
>               sdp_hdr->dst_addr.ip4.addr = dst4->sin_addr.s_addr;

BTW, a diagnostic message would be helpful here: this could only happen
as a result of a bug after all.

-- 
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