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:
parent
5f310d4d0d
commit
e506fde883
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user