diff --git a/drivers/iommu/iommu-debug.c b/drivers/iommu/iommu-debug.c index 72ebbac55b77..43c89697b5f4 100644 --- a/drivers/iommu/iommu-debug.c +++ b/drivers/iommu/iommu-debug.c @@ -673,7 +673,7 @@ static int snarf_iommu_devices(struct device *dev, void *ignored) if (!of_find_property(dev->of_node, "iommus", NULL)) return 0; - ddev = kmalloc(sizeof(*ddev), GFP_KERNEL); + ddev = kzalloc(sizeof(*ddev), GFP_KERNEL); if (!ddev) return -ENODEV; ddev->dev = dev;