vm_copy_on_write_area() did not correctly set the upper cache_ref - vm_cache's

pointer to the ref was not set (resulting in a crash).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9282 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2004-10-11 12:23:02 +00:00
parent 41dbd5191c
commit d3ddbef95c

View File

@ -1303,6 +1303,7 @@ vm_copy_on_write_area(vm_region *area)
upperCache->temporary = 1;
upperCache->scan_skip = lowerCache->scan_skip;
upperCache->source = lowerCache;
upperCache->ref = upperCacheRef;
upperCacheRef->cache = upperCache;
// we need to manually alter the ref_count