From b8a66215076d23291ca8bae9dca283d2128885e7 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Fri, 4 Jul 2008 15:46:27 +0000 Subject: [PATCH] fault_find_page(): When the source of the top cache is busy, we may find our own dummy page. This is equivalent to not finding a page at all. Fixes #2471. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26248 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/kernel/vm/vm.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/system/kernel/vm/vm.cpp b/src/system/kernel/vm/vm.cpp index 3580fc5434..e5837d2f8f 100644 --- a/src/system/kernel/vm/vm.cpp +++ b/src/system/kernel/vm/vm.cpp @@ -4321,6 +4321,9 @@ fault_find_page(vm_translation_map *map, vm_cache *topCache, cache = nextCache; } + if (page == &dummyPage) + page = NULL; + if (page == NULL) { // there was no adequate page, determine the cache for a clean one if (cache == NULL) {