提交 ed54d38f 编写于 作者: C Chris Metcalf

arch/tile: fix reversed test of strict_strtol() return value

This fixes the "initfree" boot argument.
Signed-off-by: NChris Metcalf <cmetcalf@tilera.com>
上级 401586e9
......@@ -1000,7 +1000,7 @@ static long __write_once initfree = 1;
static int __init set_initfree(char *str)
{
long val;
if (strict_strtol(str, 0, &val)) {
if (strict_strtol(str, 0, &val) == 0) {
initfree = val;
pr_info("initfree: %s free init pages\n",
initfree ? "will" : "won't");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册