From: Weidong Han Date: Sun, 7 Dec 2008 13:13:41 +0000 (+0800) Subject: Initialize domain flags to 0 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=d71a2f33ac466a437f316e7bb024d0175a7f3cd9;p=linux-beck.git Initialize domain flags to 0 It's random number after the domain is allocated by kmem_cache_alloc Signed-off-by: Weidong Han Signed-off-by: Joerg Roedel --- diff --git a/drivers/pci/intel-iommu.c b/drivers/pci/intel-iommu.c index 213a5c87fde2..65aa1d427f43 100644 --- a/drivers/pci/intel-iommu.c +++ b/drivers/pci/intel-iommu.c @@ -1180,6 +1180,7 @@ static struct dmar_domain * iommu_alloc_domain(struct intel_iommu *iommu) set_bit(num, iommu->domain_ids); domain->id = num; domain->iommu = iommu; + domain->flags = 0; iommu->domains[num] = domain; spin_unlock_irqrestore(&iommu->lock, flags);