aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/core
diff options
context:
space:
mode:
authorLeon Romanovsky <leonro@mellanox.com>2018-01-01 13:07:17 +0200
committerJason Gunthorpe <jgg@mellanox.com>2018-01-02 14:12:47 -0700
commite48e5e198fb6ec77c91047a694022f0fefa45292 (patch)
tree66b591082f27b37a28f111806ee32cf442c6465b /drivers/infiniband/core
parentRDMA/nldev: Refactor setting the nldev handle to a common function (diff)
downloadlinux-dev-e48e5e198fb6ec77c91047a694022f0fefa45292.tar.xz
linux-dev-e48e5e198fb6ec77c91047a694022f0fefa45292.zip
RDMA/cma: Mark end of CMA ID messages
The commit 1a1c116f3dcf ("RDMA/netlink: Simplify the put_msg and put_attr") removes nlmsg_len calculation in ibnl_put_attr causing netlink messages and caused to miss source and destination addresses. Fixes: 1a1c116f3dcf ("RDMA/netlink: Simplify the put_msg and put_attr") Signed-off-by: Leon Romanovsky <leonro@mellanox.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/infiniband/core')
-rw-r--r--drivers/infiniband/core/cma.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/infiniband/core/cma.c b/drivers/infiniband/core/cma.c
index 7d38c2bff5ea..65c55f79444a 100644
--- a/drivers/infiniband/core/cma.c
+++ b/drivers/infiniband/core/cma.c
@@ -4440,6 +4440,7 @@ static int cma_get_id_stats(struct sk_buff *skb, struct netlink_callback *cb)
id_stats->qp_type = id->qp_type;
i_id++;
+ nlmsg_end(skb, nlh);
}
cb->args[1] = 0;