iommu/omap: Increase group ref in .device_group()

Increase group refcounting in omap_iommu_device_group().

Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
This commit is contained in:
Jeffy Chen 2018-03-01 19:22:08 +08:00 committed by Joerg Roedel
parent 0c8efd610b
commit b6d57f1da7
1 changed files with 1 additions and 1 deletions

View File

@ -1536,7 +1536,7 @@ static struct iommu_group *omap_iommu_device_group(struct device *dev)
struct iommu_group *group = ERR_PTR(-EINVAL);
if (arch_data->iommu_dev)
group = arch_data->iommu_dev->group;
group = iommu_group_ref_get(arch_data->iommu_dev->group);
return group;
}