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

Commit ba826181 authored by VENKATA RAO KAKANI's avatar VENKATA RAO KAKANI Committed by Gerrit - the friendly Code Review server
Browse files

iommu/debug: Add mutex to make attach/detach thread safe



This mutex lock will help to synchronise the usage of iommu domain
structure which is getting used by multiple threads to perform
iommu attach and iommu detach in case of any error.

Without this change we are seeing page poisoning - write after free
when running stress tests using iommu-debug test cases.

Change-Id: I388a90084ab8cc7e7097bac9a41ed5fed6dad312
Acked-by: default avatarAnkur Saxena <c_ankusa@qti.qualcomm.com>
Signed-off-by: default avatarVivek Gautam <vivek.gautam@codeaurora.org>
Signed-off-by: default avatarVENKATA RAO KAKANI <vkakani@codeaurora.org>
parent 1eef60bf
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