summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authordillon <dillon@FreeBSD.org>2001-08-22 04:01:56 +0000
committerdillon <dillon@FreeBSD.org>2001-08-22 04:01:56 +0000
commita11f076b5cd76a6d5abcadc5cda49733a6961b8f (patch)
treed29fd477a92c7e312e90fda33d583fa337b736f4 /sys
parent85fe335d1b822ffbfeabd756de2458414cfb6e92 (diff)
downloadFreeBSD-src-a11f076b5cd76a6d5abcadc5cda49733a6961b8f.zip
FreeBSD-src-a11f076b5cd76a6d5abcadc5cda49733a6961b8f.tar.gz
KASSERT if vm_page_t->wire_count overflows.
Diffstat (limited to 'sys')
-rw-r--r--sys/vm/vm_page.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/vm/vm_page.c b/sys/vm/vm_page.c
index d9f3528..5ea1f55 100644
--- a/sys/vm/vm_page.c
+++ b/sys/vm/vm_page.c
@@ -1233,6 +1233,7 @@ vm_page_wire(vm_page_t m)
cnt.v_wire_count++;
}
m->wire_count++;
+ KASSERT(m->wire_count != 0, ("vm_page_wire: wire_count overflow m=%p", m));
splx(s);
vm_page_flag_set(m, PG_MAPPED);
}
OpenPOWER on IntegriCloud