]> git.baikalelectronics.ru Git - kernel.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)
commit170b020942f0f7cfa86ec97cca01858c837fb260
tree19191052675d20e37e48e4399af14c89f5489ebc
parent46034535a5e3ccacd0749e4692eee7d7f59a62a9
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: 12e90633d485 ("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