We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6eb4da8 commit 5665d15Copy full SHA for 5665d15
drivers/iommu/iommu.c
@@ -500,7 +500,7 @@ static void __iommu_group_release_device(struct iommu_group *group,
500
kfree(grp_dev->name);
501
kfree(grp_dev);
502
dev->iommu_group = NULL;
503
- kobject_put(group->devices_kobj);
+ iommu_group_put(group);
504
}
505
506
static void iommu_release_device(struct device *dev)
@@ -1067,8 +1067,7 @@ int iommu_group_add_device(struct iommu_group *group, struct device *dev)
1067
goto err_free_name;
1068
1069
1070
- kobject_get(group->devices_kobj);
1071
-
+ iommu_group_ref_get(group);
1072
dev->iommu_group = group;
1073
1074
mutex_lock(&group->mutex);
0 commit comments