aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2009-02-11 00:54:07 -0800
committerDavid S. Miller <davem@davemloft.net>2009-02-11 00:54:07 -0800
commit1b0e235cc9bfae4bc0f5cd0cba929206fb0f6a64 (patch)
tree6cf76a13bc45e772852573ffb0557a768bfe7c08
parent1db8508cf483dc1ecf66141f90a7c03659d69512 (diff)
downloadkernel_samsung_smdk4412-1b0e235cc9bfae4bc0f5cd0cba929206fb0f6a64.zip
kernel_samsung_smdk4412-1b0e235cc9bfae4bc0f5cd0cba929206fb0f6a64.tar.gz
kernel_samsung_smdk4412-1b0e235cc9bfae4bc0f5cd0cba929206fb0f6a64.tar.bz2
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 <davem@davemloft.net>
-rw-r--r--arch/sparc/kernel/chmc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/sparc/kernel/chmc.c b/arch/sparc/kernel/chmc.c
index 3b9f4d6..e1a9598 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;