summaryrefslogtreecommitdiffstats
path: root/drivers/net/niu.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2009-11-09 19:05:45 +0100
committerDavid S. Miller <davem@davemloft.net>2009-11-13 23:07:30 +0100
commit9ea2bdab11da97b2ac6f87d79976d25fa6d27295 (patch)
tree8c70d61ee1ceefe7b0caa321087d0199ad27625e /drivers/net/niu.c
parentnet/atm: move all compat_ioctl handling to atm/ioctl.c (diff)
downloadlinux-9ea2bdab11da97b2ac6f87d79976d25fa6d27295.tar.xz
linux-9ea2bdab11da97b2ac6f87d79976d25fa6d27295.zip
niu.c: Use correct length in strncmp
Untested, no hardware Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/niu.c')
-rw-r--r--drivers/net/niu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/niu.c b/drivers/net/niu.c
index 44558fcb56ac..8ce58c4c7dd3 100644
--- a/drivers/net/niu.c
+++ b/drivers/net/niu.c
@@ -8143,7 +8143,7 @@ static void __devinit niu_vpd_parse_version(struct niu *np)
int i;
for (i = 0; i < len - 5; i++) {
- if (!strncmp(s + i, "FCode ", 5))
+ if (!strncmp(s + i, "FCode ", 6))
break;
}
if (i >= len - 5)