Commit 68b3134d authored by Lu Baolu's avatar Lu Baolu Committed by Daniel Mentz
Browse files

BACKPORT: iommu: Extend mutex lock scope in iommu_probe_device()



Extend the scope of holding group->mutex so that it can cover the default
domain check/attachment and direct mappings of reserved regions.

Cc: Ashish Mhetre <amhetre@nvidia.com>
Fixes: 211ff31b ("iommu: Fix race condition during default domain allocation")
Signed-off-by: default avatarLu Baolu <baolu.lu@linux.intel.com>
Link: https://lore.kernel.org/r/20211108061349.1985579-1-baolu.lu@linux.intel.com


Signed-off-by: default avatarJoerg Roedel <jroedel@suse.de>

(cherry picked from commit 556f99ac)
Bug: 295978834
Bug: 298116110
Signed-off-by: default avatarDaniel Mentz <danielmentz@google.com>
(cherry picked from https://android-review.googlesource.com/q/commit:925c03465e83175771914ad90dea8faac6c4b64b)
Merged-In: I300e28d8e1e808916f175630690498cdfe430f31
Change-Id: I300e28d8e1e808916f175630690498cdfe430f31
parent 7076ae1c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment