]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
microblaze: Fix "kstack=" parsing
authorSteven J. Magnani <steve@digidescorp.com>
Wed, 24 Feb 2010 20:54:15 +0000 (14:54 -0600)
committerMichal Simek <monstr@monstr.eu>
Thu, 1 Apr 2010 06:38:18 +0000 (08:38 +0200)
The "kstack=" command line parameter is not parsed correctly.
All proper values are interpreted as zero.

Signed-off-by: Steven J. Magnani <steve@digidescorp.com>
Signed-off-by: Michal Simek <monstr@monstr.eu>
arch/microblaze/kernel/traps.c

index eaaaf805f31b6d32039376df4f0e9ffdec777b5d..5e4570ef515c5fd97937596814d7b8d9ee321d0c 100644 (file)
@@ -22,13 +22,11 @@ void trap_init(void)
        __enable_hw_exceptions();
 }
 
-static int kstack_depth_to_print = 24;
+static unsigned long kstack_depth_to_print = 24;
 
 static int __init kstack_setup(char *s)
 {
-       kstack_depth_to_print = strict_strtoul(s, 0, NULL);
-
-       return 1;
+       return !strict_strtoul(s, 0, &kstack_depth_to_print);
 }
 __setup("kstack=", kstack_setup);