userlandfs: Make the "request data" area user-cloneable.

Fixes #14497. Thanks to leorize for helping debug!
This commit is contained in:
Augustin Cavalier 2018-09-26 00:03:48 -04:00
parent 5f6b5a327d
commit fdb2588484
1 changed files with 3 additions and 1 deletions

View File

@ -4,6 +4,7 @@
*/
#include <stdlib.h>
#include <KernelExport.h>
#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;