mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] microblaze: Fix "kstack=" parsing
@ 2010-02-24 20:54 Steven J. Magnani
  0 siblings, 0 replies; only message in thread
From: Steven J. Magnani @ 2010-02-24 20:54 UTC (permalink / raw)
  To: microblaze-uclinux; +Cc: monstr, linux-kernel, Steven J. Magnani

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>
---
diff -uprN a/arch/microblaze/kernel/traps.c b/arch/microblaze/kernel/traps.c
--- a/arch/microblaze/kernel/traps.c	2010-02-24 14:12:01.000000000 -0600
+++ b/arch/microblaze/kernel/traps.c	2010-02-24 14:48:47.000000000 -0600
@@ -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);
 



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-02-24 21:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-24 20:54 [PATCH] microblaze: Fix "kstack=" parsing Steven J. Magnani

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®