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