From ab33f2d9611c642b87122590965cdd7ae0c916d0 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Thu, 28 Jan 2010 20:16:59 +0000 Subject: [PATCH] vm_create_null_area(): The area was created with B_NO_LOCK which would cause the wired count of manually mapped pages not to be decremented in delete_area(), leading to a "pages still has mappings" panic when the slab allocator's memory manager deleted areas. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35329 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/kernel/vm/vm.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/system/kernel/vm/vm.cpp b/src/system/kernel/vm/vm.cpp index d2d29b0ade..89feb83c26 100644 --- a/src/system/kernel/vm/vm.cpp +++ b/src/system/kernel/vm/vm.cpp @@ -1469,8 +1469,8 @@ vm_create_null_area(team_id team, const char* name, void** address, VMArea* area; status = map_backing_store(locker.AddressSpace(), cache, address, 0, size, - addressSpec, 0, B_KERNEL_READ_AREA, REGION_NO_PRIVATE_MAP, &area, name, - flags, true); + addressSpec, B_LAZY_LOCK, B_KERNEL_READ_AREA, REGION_NO_PRIVATE_MAP, + &area, name, flags, true); if (status < B_OK) { cache->ReleaseRefAndUnlock();