File tree Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Original file line number Diff line number Diff line change @@ -1918,16 +1918,7 @@ static struct iommu_domain *amd_iommu_domain_alloc(unsigned type)
1918
1918
domain -> domain .geometry .aperture_end = ~0ULL ;
1919
1919
domain -> domain .geometry .force_aperture = true;
1920
1920
1921
- if (type == IOMMU_DOMAIN_DMA &&
1922
- iommu_get_dma_cookie (& domain -> domain ) == - ENOMEM )
1923
- goto free_domain ;
1924
-
1925
1921
return & domain -> domain ;
1926
-
1927
- free_domain :
1928
- protection_domain_free (domain );
1929
-
1930
- return NULL ;
1931
1922
}
1932
1923
1933
1924
static void amd_iommu_domain_free (struct iommu_domain * dom )
@@ -1944,9 +1935,6 @@ static void amd_iommu_domain_free(struct iommu_domain *dom)
1944
1935
if (!dom )
1945
1936
return ;
1946
1937
1947
- if (dom -> type == IOMMU_DOMAIN_DMA )
1948
- iommu_put_dma_cookie (& domain -> domain );
1949
-
1950
1938
if (domain -> flags & PD_IOMMUV2_MASK )
1951
1939
free_gcr3_table (domain );
1952
1940
You can’t perform that action at this time.
0 commit comments