提交 1f7d373f 编写于 作者: M Mike Frysinger 提交者: Bryan Wu

Blackfin arch: fix cmp_label() so it doesnt incorrectly accept partial leading matches

Signed-off-by: NMike Frysinger <vapier.adi@gmail.com>
Signed-off-by: NBryan Wu <cooloney@kernel.org>
上级 27228b2e
......@@ -256,8 +256,7 @@ static int cmp_label(unsigned short ident, const char *label)
}
if (label)
return strncmp(str_ident[ident].name,
label, strlen(label));
return strcmp(str_ident[ident].name, label);
else
return -EINVAL;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册