Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 664d6f0b authored by jiabin's avatar jiabin
Browse files

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
parent 1d2a1593
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment