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
This commit is contained in:
@@ -1469,8 +1469,8 @@ vm_create_null_area(team_id team, const char* name, void** address,
|
|||||||
|
|
||||||
VMArea* area;
|
VMArea* area;
|
||||||
status = map_backing_store(locker.AddressSpace(), cache, address, 0, size,
|
status = map_backing_store(locker.AddressSpace(), cache, address, 0, size,
|
||||||
addressSpec, 0, B_KERNEL_READ_AREA, REGION_NO_PRIVATE_MAP, &area, name,
|
addressSpec, B_LAZY_LOCK, B_KERNEL_READ_AREA, REGION_NO_PRIVATE_MAP,
|
||||||
flags, true);
|
&area, name, flags, true);
|
||||||
|
|
||||||
if (status < B_OK) {
|
if (status < B_OK) {
|
||||||
cache->ReleaseRefAndUnlock();
|
cache->ReleaseRefAndUnlock();
|
||||||
|
|||||||
Reference in New Issue
Block a user