From: David S. Miller Date: Wed, 11 Feb 2009 08:54:07 +0000 (-0800) Subject: sparc64: Fix crashes in jbusmc_print_dimm() X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=1b0e235cc9bfae4bc0f5cd0cba929206fb0f6a64;p=linux-2.6-omap-h63xx.git sparc64: Fix crashes in jbusmc_print_dimm() Return was missing for the case where there is no dimm info match. Signed-off-by: David S. Miller --- diff --git a/arch/sparc/kernel/chmc.c b/arch/sparc/kernel/chmc.c index 3b9f4d6e14a..e1a9598e2a4 100644 --- a/arch/sparc/kernel/chmc.c +++ b/arch/sparc/kernel/chmc.c @@ -306,6 +306,7 @@ static int jbusmc_print_dimm(int syndrome_code, buf[1] = '?'; buf[2] = '?'; buf[3] = '\0'; + return 0; } p = dp->controller; prop = &p->layout;