diff options
author | Steve Wise <swise@opengridcomputing.com> | 2019-01-29 22:33:07 +0100 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2019-02-05 00:26:02 +0100 |
commit | 95b8e384d8c44c6be590636608f61ac7b39101ec (patch) | |
tree | 72c4fd640f99a6f4488dc1a91c92a2564a9e4b7f /drivers/infiniband/hw/cxgb4 | |
parent | RDMA/hns: Fix the chip hanging caused by sending doorbell during reset (diff) | |
download | linux-95b8e384d8c44c6be590636608f61ac7b39101ec.tar.xz linux-95b8e384d8c44c6be590636608f61ac7b39101ec.zip |
iw_cxgb*: kzalloc the iwcm verbs struct
So future additions to that struct get initialized by default.
Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/infiniband/hw/cxgb4')
-rw-r--r-- | drivers/infiniband/hw/cxgb4/provider.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/cxgb4/provider.c b/drivers/infiniband/hw/cxgb4/provider.c index cb5b713bbf39..f59bf7e5a589 100644 --- a/drivers/infiniband/hw/cxgb4/provider.c +++ b/drivers/infiniband/hw/cxgb4/provider.c @@ -616,7 +616,7 @@ void c4iw_register_device(struct work_struct *work) dev->ibdev.dev.parent = &dev->rdev.lldi.pdev->dev; dev->ibdev.uverbs_abi_ver = C4IW_UVERBS_ABI_VERSION; - dev->ibdev.iwcm = kmalloc(sizeof(struct iw_cm_verbs), GFP_KERNEL); + dev->ibdev.iwcm = kzalloc(sizeof(struct iw_cm_verbs), GFP_KERNEL); if (!dev->ibdev.iwcm) { ret = -ENOMEM; goto err_dealloc_ctx; |