提交 9ea2bdab 编写于 作者: J Joe Perches 提交者: David S. Miller

niu.c: Use correct length in strncmp

Untested, no hardware
Signed-off-by: NJoe Perches <joe@perches.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 805003a4
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
新手
引导
客服 返回
顶部