diff options
author | Leon Romanovsky <leonro@mellanox.com> | 2019-01-09 20:15:59 +0200 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2019-01-10 17:08:52 -0700 |
commit | 0975890ebe9b40abf08fecf216aed4f92805db70 (patch) | |
tree | c85212f9269f3594a3e6905327e91dd56b3de1af /drivers/infiniband/hw/mthca | |
parent | 8cbfaac3d0974ecf53b28db23ea8c105f491bb35 (diff) | |
download | lwn-0975890ebe9b40abf08fecf216aed4f92805db70.tar.gz lwn-0975890ebe9b40abf08fecf216aed4f92805db70.zip |
RDMA: Clear CQ objects during their allocation
As part of an audit process to update drivers to use rdma_restrack_add()
ensure that CQ objects is cleared before access.
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/infiniband/hw/mthca')
-rw-r--r-- | drivers/infiniband/hw/mthca/mthca_provider.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/mthca/mthca_provider.c b/drivers/infiniband/hw/mthca/mthca_provider.c index f87ee3058c65..1fcc007d1d34 100644 --- a/drivers/infiniband/hw/mthca/mthca_provider.c +++ b/drivers/infiniband/hw/mthca/mthca_provider.c @@ -684,7 +684,7 @@ static struct ib_cq *mthca_create_cq(struct ib_device *ibdev, goto err_unmap_set; } - cq = kmalloc(sizeof *cq, GFP_KERNEL); + cq = kzalloc(sizeof(*cq), GFP_KERNEL); if (!cq) { err = -ENOMEM; goto err_unmap_arm; |