git: 1d85f40e7fe3 - stable/14 - dmar: avoid excessive indirection in KASSERT() in domain_map_buf()
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 11 Sep 2024 08:44:36 UTC
The branch stable/14 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=1d85f40e7fe35f9e434f22cdc16a9f8c02b1dd16 commit 1d85f40e7fe35f9e434f22cdc16a9f8c02b1dd16 Author: Konstantin Belousov <kib@FreeBSD.org> AuthorDate: 2024-07-20 00:15:22 +0000 Commit: Konstantin Belousov <kib@FreeBSD.org> CommitDate: 2024-09-11 08:44:00 +0000 dmar: avoid excessive indirection in KASSERT() in domain_map_buf() (cherry picked from commit 09fc33d1d75f93ed04fc6b18e7fe2911b7e770e0) --- sys/x86/iommu/intel_idpgtbl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/x86/iommu/intel_idpgtbl.c b/sys/x86/iommu/intel_idpgtbl.c index 850627a2defd..21b717f54f34 100644 --- a/sys/x86/iommu/intel_idpgtbl.c +++ b/sys/x86/iommu/intel_idpgtbl.c @@ -479,7 +479,7 @@ domain_map_buf(struct iommu_domain *iodom, iommu_gaddr_t base, domain = IODOM2DOM(iodom); unit = domain->dmar; - KASSERT((domain->iodom.flags & IOMMU_DOMAIN_IDMAP) == 0, + KASSERT((iodom->flags & IOMMU_DOMAIN_IDMAP) == 0, ("modifying idmap pagetable domain %p", domain)); KASSERT((base & IOMMU_PAGE_MASK) == 0, ("non-aligned base %p %jx %jx", domain, (uintmax_t)base,