Skip to contentSkip to conversation

IOMMU fix for 3.2

GIT PULL Joerg Roedel 1 participant 1 message Dec 28, 2011 IOMMU

lore
Share & tools
lore

Joerg Roedel

author maintainer
#0 lore raw

Hi Linus,

The following changes since commit 5f0a6e2d503896062f641639dacfe5055c2f593b:

Linux 3.2-rc7 (2011-12-23 21:51:06 -0800)

are available in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu.git iommu/fixes

KyongHo Cho (1):

      iommu: Initialize domain->handler in iommu_domain_alloc()
 drivers/iommu/iommu.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/iommu/iommu.c +1 -1
index 2fb2963..5b5fa5c 100644
@@ -90,7 +90,7 @@ struct iommu_domain *iommu_domain_alloc(struct bus_type *bus)
 	if (bus == NULL || bus->iommu_ops == NULL)
 		return NULL;
 
-	domain = kmalloc(sizeof(*domain), GFP_KERNEL);
+	domain = kzalloc(sizeof(*domain), GFP_KERNEL);
 	if (!domain)
 		return NULL;
 

The patch fixes a missing initialization of a newly added member to the iommu_domain structure (in a way that also works for future members). The top-commit I am asking to pull on my machine is

	8bd6960c6ae65d7f92bfb708154ee813417d7b26

Please pull.

Thanks,

Joerg