diff --git a/src/system/kernel/vm/vm.cpp b/src/system/kernel/vm/vm.cpp index 0fe2eeadd5..292b3826ac 100644 --- a/src/system/kernel/vm/vm.cpp +++ b/src/system/kernel/vm/vm.cpp @@ -745,7 +745,8 @@ cut_area(VMAddressSpace* addressSpace, VMArea* area, addr_t address, if (onlyCacheUser) { // Create a new cache for the second area. VMCache* secondCache; - error = VMCacheFactory::CreateAnonymousCache(secondCache, false, 0, 0, + error = VMCacheFactory::CreateAnonymousCache(secondCache, + area->protection & B_OVERCOMMITTING_AREA, 0, 0, dynamic_cast(cache) == NULL, priority); if (error != B_OK) { addressSpace->ShrinkAreaTail(area, oldSize, allocationFlags);