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

Skip to content
Commit 87ef5f34 authored by Jilai Wang's avatar Jilai Wang
Browse files

msm: npu: Use mutex to protect map/unmap to avoid race condition



If multiple processes call map/unmap funciton concurrently, it's
possible to cause data structure corruption while both of them
accesses the same buffer at the same time. This change is to use
mutex to avoid this problem.

Change-Id: I44236a7ae991c0cbd50c36c17cd4cb8e11705a7f
Signed-off-by: default avatarJilai Wang <jilaiw@codeaurora.org>
parent f84134c2
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