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

Skip to content
Commit 5da1a788 authored by Laura Abbott's avatar Laura Abbott Committed by Stephen Boyd
Browse files

iommu: msm: Lock the meta data against map/unmap races



Reference counting is not enough to prevent races with map/unmap.
If a client tries to take an additional reference to an already
existing sg_table, it may be possible for an unmap to destroy the
reference while the map is still in progress. Prevent this race by
(properly) taking the meta lock around all lookup and reference calls.

Change-Id: Ic5de556db0d902e8b8f81b83b7897ad77940b269
Signed-off-by: default avatarLaura Abbott <lauraa@codeaurora.org>
parent a832025f
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