On Fri, Nov 11, 2016 at 05:59:21PM +0000, Robin Murphy wrote: > iommu_group_get_for_dev() expects that the IOMMU driver's device_group > callback return a group with a reference held for the given device. > Whilst allocating a new group is fine, and pci_device_group() correctly > handles reusing an existing group, there is no general means for IOMMU > drivers doing their own group lookup to take additional references on an > existing group pointer without having to also store device pointers or > resort to elaborate trickery. > > Add an IOMMU-driver-specific function to fill the hole. > > Acked-by: Sricharan R <[email protected]> > Signed-off-by: Robin Murphy <[email protected]> > --- > > v2: Fix the function name; clarify what exactly its callers are fixing. > > drivers/iommu/iommu.c | 13 +++++++++++++ > include/linux/iommu.h | 1 + > 2 files changed, 14 insertions(+)
Applied the series, thanks Robin. _______________________________________________ iommu mailing list [email protected] https://lists.linuxfoundation.org/mailman/listinfo/iommu
