-
Miaoqian Lin authored
iommu_group_get() returns the group with the reference incremented. Move iommu_group_get() after owner check to fix the refcount leak. Fixes: 89395cce ("iommu: Add device-centric DMA ownership interfaces") Signed-off-by:
Miaoqian Lin <linmq006@gmail.com> Reviewed-by:
Lu Baolu <baolu.lu@linux.intel.com> Reviewed-by:
Jason Gunthorpe <jgg@nvidia.com> Link: https://lore.kernel.org/r/20221230083100.1489569-1-linmq006@gmail.com [ joro: Remove *group = NULL initialization ] Signed-off-by:
Joerg Roedel <jroedel@suse.de>
a6a9a5da