From dbc23cdfb781ec8a690c20ef38b67493c3ab610e Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Tue, 30 Jan 2024 21:44:02 -0500 Subject: [PATCH] userlandfs: Allocate requests in-kernel as kernel-only. Things still seem to work, and may fix some SMAP violations. --- .../file_systems/userlandfs/private/RequestAllocator.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 0e01661604..6970c10de2 100644 --- a/src/add-ons/kernel/file_systems/userlandfs/private/RequestAllocator.cpp +++ b/src/add-ons/kernel/file_systems/userlandfs/private/RequestAllocator.cpp @@ -242,9 +242,10 @@ RequestAllocator::AllocateAddress(Address& address, int32 size, int32 align, B_ANY_ADDRESS, #endif areaSize, B_NO_LOCK, - B_READ_AREA | B_WRITE_AREA #ifdef _KERNEL_MODE - | B_KERNEL_READ_AREA | B_KERNEL_WRITE_AREA | B_CLONEABLE_AREA + B_KERNEL_READ_AREA | B_KERNEL_WRITE_AREA | B_CLONEABLE_AREA +#else + B_READ_AREA | B_WRITE_AREA #endif ); if (area < 0)