diff options
author | Weidong Han <weidong.han@intel.com> | 2008-12-07 08:13:41 -0500 |
---|---|---|
committer | Joerg Roedel <joerg.roedel@amd.com> | 2009-01-03 08:02:17 -0500 |
commit | d71a2f33ac466a437f316e7bb024d0175a7f3cd9 (patch) | |
tree | 6051389bd7d858bcbab1e3d4c1bf263bb80e3c22 /drivers/pci/intel-iommu.c | |
parent | 2e824f79240476d57a8589f46232cabf151efe90 (diff) |
Initialize domain flags to 0
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>
Diffstat (limited to 'drivers/pci/intel-iommu.c')
-rw-r--r-- | drivers/pci/intel-iommu.c | 1 |
1 files changed, 1 insertions, 0 deletions
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) | |||
1180 | set_bit(num, iommu->domain_ids); | 1180 | set_bit(num, iommu->domain_ids); |
1181 | domain->id = num; | 1181 | domain->id = num; |
1182 | domain->iommu = iommu; | 1182 | domain->iommu = iommu; |
1183 | domain->flags = 0; | ||
1183 | iommu->domains[num] = domain; | 1184 | iommu->domains[num] = domain; |
1184 | spin_unlock_irqrestore(&iommu->lock, flags); | 1185 | spin_unlock_irqrestore(&iommu->lock, flags); |
1185 | 1186 | ||