Skip to content

Commit edce36d

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

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

arch/powerpc/kernel/iommu.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -1285,13 +1285,14 @@ spapr_tce_platform_iommu_attach_dev(struct iommu_domain *platform_domain,
12851285
struct device *dev)
12861286
{
12871287
struct iommu_domain *domain = iommu_get_domain_for_dev(dev);
1288-
struct iommu_group *grp = iommu_group_get(dev);
12891288
struct iommu_table_group *table_group;
1289+
struct iommu_group *grp;
12901290

12911291
/* At first attach the ownership is already set */
12921292
if (!domain)
12931293
return 0;
12941294

1295+
grp = iommu_group_get(dev);
12951296
table_group = iommu_group_get_iommudata(grp);
12961297
/*
12971298
* The domain being set to PLATFORM from earlier

0 commit comments

Comments
 (0)