From: Joe Perches Date: Wed, 16 Dec 2009 00:47:45 +0000 (-0800) Subject: parport_pc.c: use correct length in strncmp X-Git-Tag: firefly_0821_release~9833^2~3651^2~55 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=1f2c19f8c959c1d0ccd3e33b1f480593b66d95dd;p=firefly-linux-kernel-4.4.55.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;