diff --git a/[refs] b/[refs] index b01cc14bb19b..7419658425d4 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 8b408fe4f853dcfa18d133aa4cf1d7546b4c3870 +refs/heads/master: 75f66533bc883f761a7adcab3281fe3323efbc90 diff --git a/trunk/arch/x86/kernel/amd_iommu_init.c b/trunk/arch/x86/kernel/amd_iommu_init.c index feaf47184900..8975965f3e67 100644 --- a/trunk/arch/x86/kernel/amd_iommu_init.c +++ b/trunk/arch/x86/kernel/amd_iommu_init.c @@ -1304,6 +1304,8 @@ static int __init amd_iommu_init(void) if (ret) goto free; + enable_iommus(); + if (iommu_pass_through) ret = amd_iommu_init_passthrough(); else @@ -1316,8 +1318,6 @@ static int __init amd_iommu_init(void) amd_iommu_init_notifier(); - enable_iommus(); - if (iommu_pass_through) goto out; @@ -1331,6 +1331,7 @@ static int __init amd_iommu_init(void) return ret; free: + disable_iommus(); amd_iommu_uninit_devices();