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

Skip to content
Commit 0b0950fa 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: I3aeab502566c4105695a5d14736c9bea73d060e5
Signed-off-by: default avatarJilai Wang <jilaiw@codeaurora.org>
parent ed316bc4
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