diff options
author | Yuval Shaia <yuval.shaia@oracle.com> | 2016-08-25 10:57:07 -0700 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2016-10-07 16:54:34 -0400 |
commit | bd99fdea420b00925e9b83a50f2ccc5e1f07ef7d (patch) | |
tree | 71bfd4e04262fd21efea0dd74eee5528a09f0709 /drivers/infiniband/hw/mlx5/mad.c | |
parent | 32f7451d1c6214169848cfea331e2c9d4067a650 (diff) |
IB/{core,hw}: Add constant for node_desc
Signed-off-by: Yuval Shaia <yuval.shaia@oracle.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/hw/mlx5/mad.c')
-rw-r--r-- | drivers/infiniband/hw/mlx5/mad.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/mlx5/mad.c b/drivers/infiniband/hw/mlx5/mad.c index 364aab9f3c9e..39e58489dcc2 100644 --- a/drivers/infiniband/hw/mlx5/mad.c +++ b/drivers/infiniband/hw/mlx5/mad.c @@ -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); |