From fdb2588484b2f6573bfc89b73c551ffb072d7da5 Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Wed, 26 Sep 2018 00:03:48 -0400 Subject: [PATCH] userlandfs: Make the "request data" area user-cloneable. Fixes #14497. Thanks to leorize for helping debug! --- .../file_systems/userlandfs/private/RequestAllocator.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 1beee1b871..56104c3f08 100644 --- a/src/add-ons/kernel/file_systems/userlandfs/private/RequestAllocator.cpp +++ b/src/add-ons/kernel/file_systems/userlandfs/private/RequestAllocator.cpp @@ -4,6 +4,7 @@ */ #include +#include #include "AreaSupport.h" #include "Compatibility.h" @@ -238,7 +239,8 @@ RequestAllocator::AllocateAddress(Address& address, int32 size, int32 align, #else B_ANY_ADDRESS, #endif - areaSize, B_NO_LOCK, B_READ_AREA | B_WRITE_AREA); + areaSize, B_NO_LOCK, + B_READ_AREA | B_WRITE_AREA | B_USER_CLONEABLE_AREA); if (area < 0) RETURN_ERROR(area); fAllocatedAreas[fAllocatedAreaCount++] = area;