Commit 1f2c19f8c959c1d0ccd3e33b1f480593b66d95dd

Authored by Joe Perches
Committed by Linus Torvalds
1 parent ac2b3e67dd

parport_pc.c: use correct length in strncmp

Signed-off-by: Joe Perches <joe@perches.com>
Acked-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

drivers/parport/parport_pc.c
... ... @@ -3403,7 +3403,7 @@
3403 3403 *val = automatic;
3404 3404 else if (!strncmp(s, "none", 4))
3405 3405 *val = none;
3406   - else if (nofifo && !strncmp(s, "nofifo", 4))
  3406 + else if (nofifo && !strncmp(s, "nofifo", 6))
3407 3407 *val = nofifo;
3408 3408 else {
3409 3409 char *ep;