]> git.openfabrics.org - ~shefty/rdma-win.git/commitdiff
[HCA] Fix copy of CA attributes to properly update internal pointers.
authorftillier <ftillier@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Wed, 2 Nov 2005 22:17:08 +0000 (22:17 +0000)
committerftillier <ftillier@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Wed, 2 Nov 2005 22:17:08 +0000 (22:17 +0000)
git-svn-id: svn://openib.tc.cornell.edu/gen1@137 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

trunk/hw/mt23108/user/mlnx_ual_ca.c

index 072e72f6cf9c0607801577739787417784651b15..09edb90d719d0c388d0afb40d2958695918f0949 100644 (file)
@@ -200,8 +200,9 @@ mlnx_post_query_ca (
        if ( ioctl_status == IB_SUCCESS && p_ca_attr &&\r
                byte_count && !h_uvp_ca->p_hca_attr )\r
        {\r
+               CL_ASSERT( byte_count >= p_ca_attr->size );\r
                h_uvp_ca->p_hca_attr = p_umv_buf->p_inout_buf;\r
-               cl_memcpy(h_uvp_ca->p_hca_attr, p_ca_attr, byte_count);\r
+               ib_copy_ca_attr( h_uvp_ca->p_hca_attr, p_ca_attr );\r
        }\r
        else if (p_umv_buf->p_inout_buf) \r
        {\r