Initialize domain flags to 0
authorWeidong Han <weidong.han@intel.com>
Sun, 7 Dec 2008 13:13:41 +0000 (21:13 +0800)
committerJoerg Roedel <joerg.roedel@amd.com>
Sat, 3 Jan 2009 13:02:17 +0000 (14:02 +0100)
It's random number after the domain is allocated by kmem_cache_alloc

Signed-off-by: Weidong Han <weidong.han@intel.com>
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
drivers/pci/intel-iommu.c

index 213a5c87fde21180588d6cd86277fd81c013ce83..65aa1d427f43a8853ab9d6bcd0fd219bbb18fbc0 100644 (file)
@@ -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);