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

Skip to content
Commit f0e6f673 authored by Sudarshan Rajagopalan's avatar Sudarshan Rajagopalan Committed by Gerrit - the friendly Code Review server
Browse files

iommu: arm-smmu: Avoid register writes on multiple detach calls



Two or more racing detach calls are possible, where the attach_count
gets decremented multiple times and becomes negative, due to which
the necessary check would fail and register writes would occur followed
by TLB flush all. Check if attach_count was zero, and return if so.

Change-Id: I0f33585c57f4d96e475c672604bb9163edc332fb
Signed-off-by: default avatarSudarshan Rajagopalan <sudaraja@codeaurora.org>
parent 314af848
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