aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2009-11-09 20:58:50 -0500
committerIngo Molnar <mingo@elte.hu>2009-11-10 00:05:39 -0500
commit41855b77547fa18d90ed6a5d322983d3fdab1959 (patch)
tree7d2c55831d5b68c5e42b57633487fff31cc71084
parent2ae8bb75db1f3de422eb5898f2a063c46c36dba8 (diff)
x86: GART: pci-gart_64.c: Use correct length in strncmp
Signed-off-by: Joe Perches <joe@perches.com> Cc: <stable@kernel.org> # .3x.x LKML-Reference: <1257818330.12852.72.camel@Joe-Laptop.home> Signed-off-by: Ingo Molnar <mingo@elte.hu>
-rw-r--r--arch/x86/kernel/pci-gart_64.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/pci-gart_64.c b/arch/x86/kernel/pci-gart_64.c
index a9bcdf7c8801..eb46ab3f52b2 100644
--- a/arch/x86/kernel/pci-gart_64.c
+++ b/arch/x86/kernel/pci-gart_64.c
@@ -858,7 +858,7 @@ void __init gart_parse_options(char *p)
858#endif 858#endif
859 if (isdigit(*p) && get_option(&p, &arg)) 859 if (isdigit(*p) && get_option(&p, &arg))
860 iommu_size = arg; 860 iommu_size = arg;
861 if (!strncmp(p, "fullflush", 8)) 861 if (!strncmp(p, "fullflush", 9))
862 iommu_fullflush = 1; 862 iommu_fullflush = 1;
863 if (!strncmp(p, "nofullflush", 11)) 863 if (!strncmp(p, "nofullflush", 11))
864 iommu_fullflush = 0; 864 iommu_fullflush = 0;