iommu: Mark dev_iommu_get() with lockdep
authorJason Gunthorpe <jgg@nvidia.com>
Thu, 7 Dec 2023 18:03:11 +0000 (14:03 -0400)
committerJoerg Roedel <jroedel@suse.de>
Tue, 12 Dec 2023 09:18:48 +0000 (10:18 +0100)
commit64945d1b0ed169aeffa59020941e4ac45ebc315a
tree82eb65a22706e60be14eacad0cb5d22e5f17a584
parent5b4ea8b06eb79234a244ffc1f7405aa968f62069
iommu: Mark dev_iommu_get() with lockdep

Allocation of dev->iommu must be done under the
iommu_probe_device_lock. Mark this with lockdep to discourage future
mistakes.

Reviewed-by: Jerry Snitselaar <jsnitsel@redhat.com>
Tested-by: Hector Martin <marcan@marcan.st>
Reviewed-by: Lu Baolu <baolu.lu@linux.intel.com>
Reviewed-by: Moritz Fischer <moritzf@google.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/4-v2-16e4def25ebb+820-iommu_fwspec_p1_jgg@nvidia.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/iommu.c