Skip to content

Commit a3e6944

Browse files
author
Fox Snowpatch
committed
1 parent 5165c17 commit a3e6944

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

arch/powerpc/kernel/iommu.c

+3-1
Original file line numberDiff line numberDiff line change
@@ -1289,8 +1289,10 @@ spapr_tce_platform_iommu_attach_dev(struct iommu_domain *platform_domain,
12891289
struct iommu_table_group *table_group;
12901290

12911291
/* At first attach the ownership is already set */
1292-
if (!domain)
1292+
if (!domain) {
1293+
iommu_group_put(grp);
12931294
return 0;
1295+
}
12941296

12951297
table_group = iommu_group_get_iommudata(grp);
12961298
/*

0 commit comments

Comments
 (0)