Skip to content

Commit 89307ba

Browse files
committed
Merge branch 'iommu/fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu
* 'iommu/fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu: iommu: Initialize domain->handler in iommu_domain_alloc()
2 parents 50b2abe + 8bd6960 commit 89307ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/iommu/iommu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ struct iommu_domain *iommu_domain_alloc(struct bus_type *bus)
9090
if (bus == NULL || bus->iommu_ops == NULL)
9191
return NULL;
9292

93-
domain = kmalloc(sizeof(*domain), GFP_KERNEL);
93+
domain = kzalloc(sizeof(*domain), GFP_KERNEL);
9494
if (!domain)
9595
return NULL;
9696

0 commit comments

Comments
 (0)