diff options
Diffstat (limited to 'drivers/infiniband/core/nldev.c')
-rw-r--r-- | drivers/infiniband/core/nldev.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/infiniband/core/nldev.c b/drivers/infiniband/core/nldev.c index 11ed58d3fce5..ad189a29cc67 100644 --- a/drivers/infiniband/core/nldev.c +++ b/drivers/infiniband/core/nldev.c | |||
@@ -292,7 +292,8 @@ static int fill_res_info_entry(struct sk_buff *msg, | |||
292 | { | 292 | { |
293 | struct nlattr *entry_attr; | 293 | struct nlattr *entry_attr; |
294 | 294 | ||
295 | entry_attr = nla_nest_start(msg, RDMA_NLDEV_ATTR_RES_SUMMARY_ENTRY); | 295 | entry_attr = nla_nest_start_noflag(msg, |
296 | RDMA_NLDEV_ATTR_RES_SUMMARY_ENTRY); | ||
296 | if (!entry_attr) | 297 | if (!entry_attr) |
297 | return -EMSGSIZE; | 298 | return -EMSGSIZE; |
298 | 299 | ||
@@ -327,7 +328,7 @@ static int fill_res_info(struct sk_buff *msg, struct ib_device *device) | |||
327 | if (fill_nldev_handle(msg, device)) | 328 | if (fill_nldev_handle(msg, device)) |
328 | return -EMSGSIZE; | 329 | return -EMSGSIZE; |
329 | 330 | ||
330 | table_attr = nla_nest_start(msg, RDMA_NLDEV_ATTR_RES_SUMMARY); | 331 | table_attr = nla_nest_start_noflag(msg, RDMA_NLDEV_ATTR_RES_SUMMARY); |
331 | if (!table_attr) | 332 | if (!table_attr) |
332 | return -EMSGSIZE; | 333 | return -EMSGSIZE; |
333 | 334 | ||
@@ -1108,7 +1109,7 @@ static int res_get_common_dumpit(struct sk_buff *skb, | |||
1108 | goto err; | 1109 | goto err; |
1109 | } | 1110 | } |
1110 | 1111 | ||
1111 | table_attr = nla_nest_start(skb, fe->nldev_attr); | 1112 | table_attr = nla_nest_start_noflag(skb, fe->nldev_attr); |
1112 | if (!table_attr) { | 1113 | if (!table_attr) { |
1113 | ret = -EMSGSIZE; | 1114 | ret = -EMSGSIZE; |
1114 | goto err; | 1115 | goto err; |
@@ -1134,7 +1135,7 @@ static int res_get_common_dumpit(struct sk_buff *skb, | |||
1134 | 1135 | ||
1135 | filled = true; | 1136 | filled = true; |
1136 | 1137 | ||
1137 | entry_attr = nla_nest_start(skb, fe->entry); | 1138 | entry_attr = nla_nest_start_noflag(skb, fe->entry); |
1138 | if (!entry_attr) { | 1139 | if (!entry_attr) { |
1139 | ret = -EMSGSIZE; | 1140 | ret = -EMSGSIZE; |
1140 | rdma_restrack_put(res); | 1141 | rdma_restrack_put(res); |