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

Skip to content
Commit d898ba65 authored by Phil Burk's avatar Phil Burk Committed by Gerrit - the friendly Code Review server
Browse files

audio_hw: close mmap file descriptor to fix leak

The file descriptor for MMAP shared memory was created
and passed to AudioFlinger but never closed.
Now FD is closed when the stream is goes to standby.

Bug: 134381208
Test: Get HAL pid.
Test:     adb shell ps | grep audio
Test:     adb shell ls -l /proc/{halpid}/fd | wc
Test: Run Oboetester or other app that uses MMAP
Test: Completely close the app.
Test:     adb shell ls -l /proc/{halpid}/fd | wc
Test: Count should NOT grow each time.
Change-Id: Ieaaf1c6bdc96e7ecf01cee23215fb39f79662111
(cherry picked from commit 2e27354fd3c5adec2524813d7c34114922d3e8f4)
parent 418acb11
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment