]> asedeno.scripts.mit.edu Git - linux.git/commit
RDMA/mad: Allocate zeroed MAD buffer
authorLeon Romanovsky <leonro@mellanox.com>
Tue, 29 Oct 2019 06:27:31 +0000 (08:27 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 6 Nov 2019 19:38:28 +0000 (15:38 -0400)
commitbe4a8d46732a45e78aa27c34b58431a917cd644d
tree2f51f0816e9f301563584fb9712f9f7d0109ffe0
parent874e476ba949deb475378e10df7527921e4ff6c1
RDMA/mad: Allocate zeroed MAD buffer

Ensure that MAD output buffer is zero-based allocated in all the callers
of process_mad and remove the various memset()'s from the drivers.

Link: https://lore.kernel.org/r/20191029062745.7932-3-leon@kernel.org
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/sysfs.c
drivers/infiniband/hw/mlx4/mad.c
drivers/infiniband/hw/mlx5/mad.c
drivers/infiniband/hw/ocrdma/ocrdma_stats.c
drivers/infiniband/hw/qib/qib_mad.c