diff options
author | Yuval Shaia <yuval.shaia@oracle.com> | 2016-08-25 19:57:07 +0200 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2016-10-07 22:54:34 +0200 |
commit | bd99fdea420b00925e9b83a50f2ccc5e1f07ef7d (patch) | |
tree | 71bfd4e04262fd21efea0dd74eee5528a09f0709 /drivers/infiniband/hw/qib/qib_verbs.c | |
parent | ipoib: Make ipoib_warn ratelimited (diff) | |
download | linux-bd99fdea420b00925e9b83a50f2ccc5e1f07ef7d.tar.xz linux-bd99fdea420b00925e9b83a50f2ccc5e1f07ef7d.zip |
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/qib/qib_verbs.c')
-rw-r--r-- | drivers/infiniband/hw/qib/qib_verbs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/qib/qib_verbs.c b/drivers/infiniband/hw/qib/qib_verbs.c index fd1dfbce5539..2d7e52619b55 100644 --- a/drivers/infiniband/hw/qib/qib_verbs.c +++ b/drivers/infiniband/hw/qib/qib_verbs.c @@ -1370,7 +1370,8 @@ static int qib_modify_device(struct ib_device *device, } if (device_modify_mask & IB_DEVICE_MODIFY_NODE_DESC) { - memcpy(device->node_desc, device_modify->node_desc, 64); + memcpy(device->node_desc, device_modify->node_desc, + IB_DEVICE_NODE_DESC_MAX); for (i = 0; i < dd->num_pports; i++) { struct qib_ibport *ibp = &dd->pport[i].ibport_data; |