wait_if_address_range_is_wired() was leaking a cache reference.

Fixes #5710.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36237 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2010-04-13 21:18:52 +00:00
parent 5f310d4d0d
commit e506fde883

View File

@ -955,12 +955,10 @@ wait_if_address_range_is_wired(VMAddressSpace* addressSpace, addr_t base,
if (base >= area->Base() + area->Size() - 1)
continue;
VMCache* cache = vm_area_get_locked_cache(area);
AreaCacheLocker cacheLocker(vm_area_get_locked_cache(area));
if (wait_if_area_range_is_wired(area, base, size, locker, cache))
if (wait_if_area_range_is_wired(area, base, size, locker, &cacheLocker))
return true;
cache->Unlock();
}
return false;