Commit 9ea2bdab authored by Joe Perches's avatar Joe Perches Committed by David S. Miller

niu.c: Use correct length in strncmp

Untested, no hardware
Signed-off-by: default avatarJoe Perches <joe@perches.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 805003a4
...@@ -8143,7 +8143,7 @@ static void __devinit niu_vpd_parse_version(struct niu *np) ...@@ -8143,7 +8143,7 @@ static void __devinit niu_vpd_parse_version(struct niu *np)
int i; int i;
for (i = 0; i < len - 5; i++) { for (i = 0; i < len - 5; i++) {
if (!strncmp(s + i, "FCode ", 5)) if (!strncmp(s + i, "FCode ", 6))
break; break;
} }
if (i >= len - 5) if (i >= len - 5)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment