Skip to contentSkip to conversation

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

PATCH Applied Jeffy Chen 2 participants 2 messages Mar 1, 2018 – Mar 15, 2018 IOMMU

lore
Share & tools
lore

Jeffy Chen

author
#0 lore raw

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

Increase group refcounting in omap_iommu_device_group().

---

 drivers/iommu/omap-iommu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/iommu/omap-iommu.c +1 -1
index e135ab830ebf..c33b7b104e72 100644
@@ -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;
 }
Signature · 1 line
2.11.0