summaryrefslogtreecommitdiffstats
path: root/drivers/iommu/omap-iommu.c
diff options
context:
space:
mode:
authorJeffy Chen <jeffy.chen@rock-chips.com>2018-03-01 19:22:08 +0800
committerJoerg Roedel <jroedel@suse.de>2018-03-15 15:54:52 +0100
commitb6d57f1da7e81cb056619d41cf015ebe306c296c (patch)
tree723656eed902af7df4b44bcd0133ec53d6941d0c /drivers/iommu/omap-iommu.c
parent0c8efd610b58cb23cefdfa12015799079aef94ae (diff)
downloadlinux-b6d57f1da7e81cb056619d41cf015ebe306c296c.tar.bz2
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>
Diffstat (limited to 'drivers/iommu/omap-iommu.c')
-rw-r--r--drivers/iommu/omap-iommu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iommu/omap-iommu.c b/drivers/iommu/omap-iommu.c
index e135ab830ebf..c33b7b104e72 100644
--- a/drivers/iommu/omap-iommu.c
+++ b/drivers/iommu/omap-iommu.c
@@ -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;
}