From: Joe Perches Date: Wed, 16 Dec 2009 00:47:45 +0000 (-0800) Subject: parport_pc.c: use correct length in strncmp X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1f2c19f8c959c1d0ccd3e33b1f480593b66d95dd;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git parport_pc.c: use correct length in strncmp Signed-off-by: Joe Perches Acked-by: Alan Cox Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/parport/parport_pc.c b/drivers/parport/parport_pc.c index 2597145a066e..ad113b0f62db 100644 --- a/drivers/parport/parport_pc.c +++ b/drivers/parport/parport_pc.c @@ -3403,7 +3403,7 @@ static int __init parport_parse_param(const char *s, int *val, *val = automatic; else if (!strncmp(s, "none", 4)) *val = none; - else if (nofifo && !strncmp(s, "nofifo", 4)) + else if (nofifo && !strncmp(s, "nofifo", 6)) *val = nofifo; else { char *ep;