Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d71a2f33 authored by Weidong Han's avatar Weidong Han Committed by Joerg Roedel
Browse files

Initialize domain flags to 0



It's random number after the domain is allocated by kmem_cache_alloc

Signed-off-by: default avatarWeidong Han <weidong.han@intel.com>
Signed-off-by: default avatarJoerg Roedel <joerg.roedel@amd.com>
parent 2e824f79
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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);