]> www.infradead.org Git - users/hch/misc.git/commit
iommu: Make @handle mandatory in iommu_{attach|replace}_group_handle()
authorYi Liu <yi.l.liu@intel.com>
Wed, 26 Feb 2025 01:18:46 +0000 (17:18 -0800)
committerJason Gunthorpe <jgg@nvidia.com>
Fri, 28 Feb 2025 14:07:14 +0000 (10:07 -0400)
commit237603a46abf9637f9b71c6225293fac2b4d6ef7
tree7df5ddf7d96437db9dba0c320da8d47675ff80c6
parent40f5175d0eb77f902ba8e2a5df2a8f3a218c8843
iommu: Make @handle mandatory in iommu_{attach|replace}_group_handle()

Caller of the two APIs always provide a valid handle, make @handle as
mandatory parameter. Take this chance incoporate the handle->domain
set under the protection of group->mutex in iommu_attach_group_handle().

Link: https://patch.msgid.link/r/20250226011849.5102-2-yi.l.liu@intel.com
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Reviewed-by: Nicolin Chen <nicolinc@nvidia.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Reviewed-by: Lu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: Yi Liu <yi.l.liu@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/iommu/iommu.c