diff options
-rw-r--r-- | drivers/infiniband/core/uverbs_marshall.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/core/uverbs_marshall.c b/drivers/infiniband/core/uverbs_marshall.c index af020f80d50f..ed3e68f915ca 100644 --- a/drivers/infiniband/core/uverbs_marshall.c +++ b/drivers/infiniband/core/uverbs_marshall.c | |||
@@ -36,7 +36,7 @@ | |||
36 | void ib_copy_ah_attr_to_user(struct ib_uverbs_ah_attr *dst, | 36 | void ib_copy_ah_attr_to_user(struct ib_uverbs_ah_attr *dst, |
37 | struct ib_ah_attr *src) | 37 | struct ib_ah_attr *src) |
38 | { | 38 | { |
39 | memcpy(dst->grh.dgid, src->grh.dgid.raw, sizeof src->grh.dgid); | 39 | memcpy(dst->grh.dgid, src->grh.dgid.raw, sizeof(src->grh.dgid)); |
40 | dst->grh.flow_label = src->grh.flow_label; | 40 | dst->grh.flow_label = src->grh.flow_label; |
41 | dst->grh.sgid_index = src->grh.sgid_index; | 41 | dst->grh.sgid_index = src->grh.sgid_index; |
42 | dst->grh.hop_limit = src->grh.hop_limit; | 42 | dst->grh.hop_limit = src->grh.hop_limit; |