]> 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)
commit847221ebf309e7c658bc116d9656fd35d42ac20e
tree19191052675d20e37e48e4399af14c89f5489ebc
parent402b43fea49e80b84cf5cc0230639820324f2b8b
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: a492055d4f05 ("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