]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0a0aefcf243e2a66e5fdfb0b679a34a03cc52b49
tree9c47d16894d5d3136c1323d65762f1c537d95212
parent5b56ff9f92b26a5090829cb65c5e26cbb6d633c4
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: c2abc70758832 ("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