]> asedeno.scripts.mit.edu Git - linux.git/commit
RDMA/cma: Use correct size when writing netlink stats
authorParav Pandit <parav@mellanox.com>
Tue, 14 Nov 2017 12:51:55 +0000 (14:51 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 18 Dec 2017 22:37:05 +0000 (15:37 -0700)
commit7baaa49af3716fb31877c61f59b74d029ce15b75
tree19191052675d20e37e48e4399af14c89f5489ebc
parent98aebc550b88c6d0928e01652ffe76806a2b782e
RDMA/cma: Use correct size when writing netlink stats

The code was using the src size when formatting the dst. They are almost
certainly the same value but it reads wrong.

Fixes: ce117ffac2e9 ("RDMA/cma: Export AF_IB statistics")
Signed-off-by: Parav Pandit <parav@mellanox.com>
Reviewed-by: Daniel Jurgens <danielj@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/cma.c