IB/{core,hw}: Add constant for node_desc
[cascardo/linux.git] / drivers / infiniband / hw / mlx5 / mad.c
index 364aab9..39e5848 100644 (file)
@@ -394,7 +394,7 @@ int mlx5_query_mad_ifc_node_desc(struct mlx5_ib_dev *dev, char *node_desc)
        if (err)
                goto out;
 
-       memcpy(node_desc, out_mad->data, 64);
+       memcpy(node_desc, out_mad->data, IB_DEVICE_NODE_DESC_MAX);
 out:
        kfree(in_mad);
        kfree(out_mad);