x86: Fix iommu=nodac parameter handling
authorTejun Heo <tj@kernel.org>
Mon, 26 Oct 2009 14:41:46 +0000 (15:41 +0100)
committerIngo Molnar <mingo@elte.hu>
Sun, 8 Nov 2009 12:19:05 +0000 (13:19 +0100)
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>
arch/x86/kernel/pci-dma.c

index ce2fb91bbed1618e43de22033ce2c5d7370f85f5..839d49a669bc1acdddb18b653de52a35af6cf81f 100644 (file)
@@ -216,7 +216,7 @@ static __init int iommu_setup(char *p)
                if (!strncmp(p, "allowdac", 8))
                        forbid_dac = 0;
                if (!strncmp(p, "nodac", 5))
-                       forbid_dac = -1;
+                       forbid_dac = 1;
                if (!strncmp(p, "usedac", 6)) {
                        forbid_dac = -1;
                        return 1;