Skip to content

Commit 7e8284c

Browse files
committed
iommu_gas: Fix assertion.
placeholder entry end changed to 0 in f591287 ("iommu_gas: make placeholder entry at the start of the GAS zero size") Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D55326
1 parent f12a0dc commit 7e8284c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sys/dev/iommu/iommu_gas.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ iommu_gas_fini_domain(struct iommu_domain *domain)
282282

283283
entry = RB_MIN(iommu_gas_entries_tree, &domain->rb_root);
284284
KASSERT(entry->start == 0, ("start entry start %p", domain));
285-
KASSERT(entry->end == IOMMU_PAGE_SIZE, ("start entry end %p", domain));
285+
KASSERT(entry->end == 0, ("start entry end %p", domain));
286286
KASSERT(entry->flags ==
287287
(IOMMU_MAP_ENTRY_PLACE | IOMMU_MAP_ENTRY_UNMAPPED),
288288
("start entry flags %p", domain));

0 commit comments

Comments
 (0)