diff options
author | Tejun Heo <tj@kernel.org> | 2009-10-26 10:41:46 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-11-08 07:19:05 -0500 |
commit | 2ae8bb75db1f3de422eb5898f2a063c46c36dba8 (patch) | |
tree | ebdf989299d9e5ec460e164671af0dbdbee13f4b /arch/x86/kernel/pci-dma.c | |
parent | 338bac527ed0e35b4cb50390972f15d3cbce92ca (diff) |
x86: Fix iommu=nodac parameter handling
iommu=nodac should forbid dac instead of enabling it. Fix it.
Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Cc: Matteo Frigo <athena@fftw.org>
Cc: <stable@kernel.org> # .32.x and older
LKML-Reference: <4AE5B52A.4050408@kernel.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/pci-dma.c')
-rw-r--r-- | arch/x86/kernel/pci-dma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/pci-dma.c b/arch/x86/kernel/pci-dma.c index ce2fb91bbed1..839d49a669bc 100644 --- a/arch/x86/kernel/pci-dma.c +++ b/arch/x86/kernel/pci-dma.c | |||
@@ -216,7 +216,7 @@ static __init int iommu_setup(char *p) | |||
216 | if (!strncmp(p, "allowdac", 8)) | 216 | if (!strncmp(p, "allowdac", 8)) |
217 | forbid_dac = 0; | 217 | forbid_dac = 0; |
218 | if (!strncmp(p, "nodac", 5)) | 218 | if (!strncmp(p, "nodac", 5)) |
219 | forbid_dac = -1; | 219 | forbid_dac = 1; |
220 | if (!strncmp(p, "usedac", 6)) { | 220 | if (!strncmp(p, "usedac", 6)) { |
221 | forbid_dac = -1; | 221 | forbid_dac = -1; |
222 | return 1; | 222 | return 1; |