Skip to content

Commit

Permalink
iommu/omap: Increase group ref in .device_group()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jeffy Chen authored and Joerg Roedel committed Mar 15, 2018
1 parent 0c8efd6 commit b6d57f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/iommu/omap-iommu.c
Original file line number Diff line number Diff line change
@@ -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;
}

0 comments on commit b6d57f1

Please sign in to comment.