diff --git a/src/add-ons/kernel/file_systems/userlandfs/private/RequestAllocator.cpp b/src/add-ons/kernel/file_systems/userlandfs/private/RequestAllocator.cpp index 56104c3f08..348b16232f 100644 --- a/src/add-ons/kernel/file_systems/userlandfs/private/RequestAllocator.cpp +++ b/src/add-ons/kernel/file_systems/userlandfs/private/RequestAllocator.cpp @@ -240,7 +240,11 @@ RequestAllocator::AllocateAddress(Address& address, int32 size, int32 align, B_ANY_ADDRESS, #endif areaSize, B_NO_LOCK, - B_READ_AREA | B_WRITE_AREA | B_USER_CLONEABLE_AREA); + B_READ_AREA | B_WRITE_AREA +#ifdef _KERNEL_MODE + | B_KERNEL_READ_AREA | B_KERNEL_WRITE_AREA | B_USER_CLONEABLE_AREA +#endif + ); if (area < 0) RETURN_ERROR(area); fAllocatedAreas[fAllocatedAreaCount++] = area;