Commit b6d57f1d authored by Jeffy Chen's avatar Jeffy Chen Committed by Joerg Roedel

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

Increase group refcounting in omap_iommu_device_group().
Signed-off-by: default avatarJeffy Chen <jeffy.chen@rock-chips.com>
Signed-off-by: default avatarJoerg Roedel <jroedel@suse.de>
parent 0c8efd61
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment