Skip to contentSkip to conversation

pci-gart_64.c: Use correct length in strncmp

PATCH In review Joe Perches 1 participant 2 messages Nov 10, 2009 x86

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pci-gart_64.c: Use correct length in strncmp

arch/x86/kernel/pci-gart_64.c +1 -1
index a7f1b64..fcc0b5c 100644
@@ -856,7 +856,7 @@ void __init gart_parse_options(char *p)
 #endif
 	if (isdigit(*p) && get_option(&p, &arg))
 		iommu_size = arg;
-	if (!strncmp(p, "fullflush", 8))
+	if (!strncmp(p, "fullflush", 9))
 		iommu_fullflush = 1;
 	if (!strncmp(p, "nofullflush", 11))
 		iommu_fullflush = 0;
#1 lore raw

[tip:core/iommu] x86: GART: pci-gart_64.c: Use correct length in strncmp

Commit-ID:  41855b77547fa18d90ed6a5d322983d3fdab1959
Gitweb:     http://git.kernel.org/tip/41855b77547fa18d90ed6a5d322983d3fdab1959
Author:     Joe Perches <[email protected]>
AuthorDate: Mon, 9 Nov 2009 17:58:50 -0800
Committer:  Ingo Molnar <[email protected]>
CommitDate: Tue, 10 Nov 2009 06:05:39 +0100

x86: GART: pci-gart_64.c: Use correct length in strncmp

LKML-Reference: <[email protected]>

---
 arch/x86/kernel/pci-gart_64.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/x86/kernel/pci-gart_64.c +1 -1
index a9bcdf7..eb46ab3 100644
@@ -858,7 +858,7 @@ void __init gart_parse_options(char *p)
 #endif
 	if (isdigit(*p) && get_option(&p, &arg))
 		iommu_size = arg;
-	if (!strncmp(p, "fullflush", 8))
+	if (!strncmp(p, "fullflush", 9))
 		iommu_fullflush = 1;
 	if (!strncmp(p, "nofullflush", 11))
 		iommu_fullflush = 0;