aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuslan Bukin <br@FreeBSD.org>2026-02-19 13:56:36 +0000
committerRuslan Bukin <br@FreeBSD.org>2026-02-19 14:00:12 +0000
commit7e8284c6ad95bb7a0fc84d4d945ee98737efdd36 (patch)
treef5741e9f9c09574719bf6521c663ad82617bec0d
parentf12a0dca86b529069a940f09aba796dd4e28c66f (diff)
iommu_gas: Fix assertion.
placeholder entry end changed to 0 in f591287756368 ("iommu_gas: make placeholder entry at the start of the GAS zero size") Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D55326
-rw-r--r--sys/dev/iommu/iommu_gas.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/iommu/iommu_gas.c b/sys/dev/iommu/iommu_gas.c
index 80e37341b3dc..306649db445f 100644
--- a/sys/dev/iommu/iommu_gas.c
+++ b/sys/dev/iommu/iommu_gas.c
@@ -282,7 +282,7 @@ iommu_gas_fini_domain(struct iommu_domain *domain)
entry = RB_MIN(iommu_gas_entries_tree, &domain->rb_root);
KASSERT(entry->start == 0, ("start entry start %p", domain));
- KASSERT(entry->end == IOMMU_PAGE_SIZE, ("start entry end %p", domain));
+ KASSERT(entry->end == 0, ("start entry end %p", domain));
KASSERT(entry->flags ==
(IOMMU_MAP_ENTRY_PLACE | IOMMU_MAP_ENTRY_UNMAPPED),
("start entry flags %p", domain));