From: Weidong Han Date: Sun, 7 Dec 2008 13:13:41 +0000 (+0800) Subject: Initialize domain flags to 0 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d71a2f33ac466a437f316e7bb024d0175a7f3cd9;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.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);