summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/vm/vm_radix.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/vm/vm_radix.c b/sys/vm/vm_radix.c
index e172c86..d61f885 100644
--- a/sys/vm/vm_radix.c
+++ b/sys/vm/vm_radix.c
@@ -375,6 +375,8 @@ vm_radix_insert(struct vm_radix *rtree, vm_pindex_t index, vm_page_t page)
int slot;
uint16_t clev;
+ KASSERT(index == page->index, ("%s: index != page->index", __func__));
+
/*
* The owner of record for root is not really important because it
* will never be used.
OpenPOWER on IntegriCloud