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

Skip to content
Commit 34d1f542 authored by Gautam Manam's avatar Gautam Manam
Browse files

hal: protect in pcm handle for multithreading cases.

During mmap record usecase, if SSR is triggered
it causes in pcm device to be put in standby thereby
closing the pcm device. During same time if get mmap
position is queried from another thread it can use already
freed in->pcm device causing crash.

Fix this by protecting with in lock.

Change-Id: I489279138d5f6f1c90c5549c72c61852623b2768
parent 2fff189d
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