summaryrefslogtreecommitdiff
path: root/drivers/iommu
diff options
context:
space:
mode:
authorJeffy Chen <jeffy.chen@rock-chips.com>2018-03-01 14:22:08 +0300
committerJoerg Roedel <jroedel@suse.de>2018-03-15 17:54:52 +0300
commitb6d57f1da7e81cb056619d41cf015ebe306c296c (patch)
tree723656eed902af7df4b44bcd0133ec53d6941d0c /drivers/iommu
parent0c8efd610b58cb23cefdfa12015799079aef94ae (diff)
downloadlinux-b6d57f1da7e81cb056619d41cf015ebe306c296c.tar.xz
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')
-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;
}