1
0
Fork 0

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

This fixes the "initfree" boot argument.

Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
hifive-unleashed-5.1
Chris Metcalf 2011-02-28 15:14:19 -05:00
parent 401586e916
commit ed54d38f08
1 changed files with 1 additions and 1 deletions

View File

@ -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");