Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 189943
b: refs/heads/master
c: 75f6653
h: refs/heads/master
i:
  189941: ca9af79
  189939: fcc6d47
  189935: a75656c
v: v3
  • Loading branch information
Chris Wright authored and Joerg Roedel committed Apr 7, 2010
1 parent 81f3dff commit 0b298fb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8b408fe4f853dcfa18d133aa4cf1d7546b4c3870
refs/heads/master: 75f66533bc883f761a7adcab3281fe3323efbc90
5 changes: 3 additions & 2 deletions trunk/arch/x86/kernel/amd_iommu_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -1316,8 +1318,6 @@ static int __init amd_iommu_init(void)

amd_iommu_init_notifier();

enable_iommus();

if (iommu_pass_through)
goto out;

Expand All @@ -1331,6 +1331,7 @@ static int __init amd_iommu_init(void)
return ret;

free:
disable_iommus();

amd_iommu_uninit_devices();

Expand Down

0 comments on commit 0b298fb

Please sign in to comment.