commit | 478d5df3a0e1693669f5809176d5c7f6e8c9aa88 | [log] [tgz] |
---|---|---|
author | Phil Burk <philburk@google.com> | Mon May 01 11:34:11 2017 -0700 |
committer | Phil Burk <philburk@google.com> | Tue May 02 11:58:36 2017 -0700 |
tree | 1f43c7ac9e4b2acdf637c03ad6cfb8c477ca5751 | |
parent | c5cbb87d00ead068a7088db4060bce1c0e699b8c [diff] [blame] |
aaudio: fix mmap result checking Was checking for nullptr not MAP_FAILED Bug: 33398120 Test: see mmap() docs Change-Id: I02d178cb0188f8b0d6cd009699dccc7c97952e4b Signed-off-by: Phil Burk <philburk@google.com>
diff --git a/services/oboeservice/SharedRingBuffer.cpp b/services/oboeservice/SharedRingBuffer.cpp index efcc9d6..03c160d 100644 --- a/services/oboeservice/SharedRingBuffer.cpp +++ b/services/oboeservice/SharedRingBuffer.cpp
@@ -18,6 +18,8 @@ //#define LOG_NDEBUG 0 #include <utils/Log.h> +#include <sys/mman.h> + #include "binding/RingBufferParcelable.h" #include "binding/AudioEndpointParcelable.h"