commit | 34d1f54289e1e305fe6a2cf787ae907c99644c14 | [log] [tgz] |
---|---|---|
author | Gautam Manam <gmanam@codeaurora.org> | Tue Jan 05 20:24:37 2021 +0530 |
committer | Gautam Manam <gmanam@codeaurora.org> | Tue Jan 05 20:31:54 2021 +0530 |
tree | 0aefbb3e3dc80076ff520def425f33e4a73cb6b5 | |
parent | 2fff189d4e64ac5c703b8478346917252f5e203f [diff] |
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