mirror of
https://github.com/torvalds/linux.git
synced 2024-11-12 07:01:57 +00:00
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>
This commit is contained in:
parent
2e824f7924
commit
d71a2f33ac
@ -1180,6 +1180,7 @@ static struct dmar_domain * iommu_alloc_domain(struct intel_iommu *iommu)
|
|||||||
set_bit(num, iommu->domain_ids);
|
set_bit(num, iommu->domain_ids);
|
||||||
domain->id = num;
|
domain->id = num;
|
||||||
domain->iommu = iommu;
|
domain->iommu = iommu;
|
||||||
|
domain->flags = 0;
|
||||||
iommu->domains[num] = domain;
|
iommu->domains[num] = domain;
|
||||||
spin_unlock_irqrestore(&iommu->lock, flags);
|
spin_unlock_irqrestore(&iommu->lock, flags);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user