diff --git a/headers/private/kernel/vm/VMCache.h b/headers/private/kernel/vm/VMCache.h index b3d08953b4..06bb0b9bba 100644 --- a/headers/private/kernel/vm/VMCache.h +++ b/headers/private/kernel/vm/VMCache.h @@ -365,6 +365,8 @@ vm_page::IncrementWiredCount() inline void vm_page::DecrementWiredCount() { + ASSERT(fWiredCount > 0); + if (--fWiredCount == 0) cache_ref->cache->DecrementWiredPagesCount(); }