diff options
author | David S. Miller <davem@davemloft.net> | 2009-02-11 00:54:07 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-03-16 17:31:55 -0700 |
commit | b726dca0a412469d7786eb713101272cbf74b96f (patch) | |
tree | 3d2a6dad772a942e30472b2e7b5388e866b08f51 /arch | |
parent | e32ee958d7c37b95c2ad03617d03b37cc99dc171 (diff) |
sparc64: Fix crashes in jbusmc_print_dimm()
[ Upstream commit 1b0e235cc9bfae4bc0f5cd0cba929206fb0f6a64 ]
Return was missing for the case where there is no dimm
info match.
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/sparc64/kernel/chmc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/sparc64/kernel/chmc.c b/arch/sparc64/kernel/chmc.c index 3b9f4d6e14a9..e1a9598e2a4d 100644 --- a/arch/sparc64/kernel/chmc.c +++ b/arch/sparc64/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; |