Do not initialize shared memory pointer when mmap fails.
In SharedRingBuffer, it is possible that it fails calling mmap when doing allocation. When this happens, the shared memory pointer should be null pointer. Test: atest CtsNativeMediaAAudioTestCases Bug: 161570220 Change-Id: I7ca9d8be6b9a94ca770ced36cf2b76dcc36fe8f9
Loading
Please register or sign in to comment