iommu: Extend mutex lock scope in iommu_probe_device()
authorLu Baolu <baolu.lu@linux.intel.com>
Mon, 8 Nov 2021 06:13:49 +0000 (14:13 +0800)
committerJoerg Roedel <jroedel@suse.de>
Mon, 6 Dec 2021 11:39:05 +0000 (12:39 +0100)
commit556f99ac886635e8da15528995f06d1d7028cfca
tree9c47d16894d5d3136c1323d65762f1c537d95212
parent94aedac49d92b22995d7b9092c6551b8b9924320
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: 211ff31b3d33b ("iommu: Fix race condition during default domain allocation")
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Link: https://lore.kernel.org/r/20211108061349.1985579-1-baolu.lu@linux.intel.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/iommu.c