summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/cxgb3/iwch_provider.c
diff options
context:
space:
mode:
authorSteve Wise <swise@opengridcomputing.com>2019-01-29 22:33:07 +0100
committerJason Gunthorpe <jgg@mellanox.com>2019-02-05 00:26:02 +0100
commit95b8e384d8c44c6be590636608f61ac7b39101ec (patch)
tree72c4fd640f99a6f4488dc1a91c92a2564a9e4b7f /drivers/infiniband/hw/cxgb3/iwch_provider.c
parentRDMA/hns: Fix the chip hanging caused by sending doorbell during reset (diff)
downloadlinux-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/cxgb3/iwch_provider.c')
-rw-r--r--drivers/infiniband/hw/cxgb3/iwch_provider.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/cxgb3/iwch_provider.c b/drivers/infiniband/hw/cxgb3/iwch_provider.c
index 07c20cd07f33..804c1fc7bfc1 100644
--- a/drivers/infiniband/hw/cxgb3/iwch_provider.c
+++ b/drivers/infiniband/hw/cxgb3/iwch_provider.c
@@ -1393,7 +1393,7 @@ int iwch_register_device(struct iwch_dev *dev)
dev->ibdev.dev.parent = &dev->rdev.rnic_info.pdev->dev;
dev->ibdev.uverbs_abi_ver = IWCH_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)
return -ENOMEM;