Forráskód Böngészése

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

This fixes the "initfree" boot argument.

Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
Chris Metcalf 14 éve
szülő
commit
ed54d38f08
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      arch/tile/mm/init.c

+ 1 - 1
arch/tile/mm/init.c

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