File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -2078,10 +2078,6 @@ static struct protection_domain *protection_domain_alloc(unsigned int type)
2078
2078
int mode = DEFAULT_PGTABLE_LEVEL ;
2079
2079
int ret ;
2080
2080
2081
- domain = kzalloc (sizeof (* domain ), GFP_KERNEL );
2082
- if (!domain )
2083
- return NULL ;
2084
-
2085
2081
/*
2086
2082
* Force IOMMU v1 page table when iommu=pt and
2087
2083
* when allocating domain for pass-through devices.
@@ -2097,6 +2093,10 @@ static struct protection_domain *protection_domain_alloc(unsigned int type)
2097
2093
return NULL ;
2098
2094
}
2099
2095
2096
+ domain = kzalloc (sizeof (* domain ), GFP_KERNEL );
2097
+ if (!domain )
2098
+ return NULL ;
2099
+
2100
2100
switch (pgtable ) {
2101
2101
case AMD_IOMMU_V1 :
2102
2102
ret = protection_domain_init_v1 (domain , mode );
You can’t perform that action at this time.
0 commit comments