Skip to content

Commit 3475944

Browse files
committed
disabled zerocopy for now, see issue #194
1 parent b23ea48 commit 3475944

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mtp/backend/linux/usb/BufferAllocator.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ namespace mtp { namespace usb
7070
public:
7171
BufferAllocator(int fd): _fd(fd), _pageSize(sysconf(_SC_PAGESIZE)), _buffer(nullptr), _bufferSize(0), _bufferAllocated()
7272
{
73+
//disable mmap allocation for now, see https://github.com/whoozle/android-file-transfer-linux/issues/194
74+
_fd = -1;
7375
if (_pageSize <= 0)
7476
throw posix::Exception("sysconf(_SC_PAGESIZE)");
7577
debug("page size = ", _pageSize);

0 commit comments

Comments
 (0)