sparc64: Fix crashes in jbusmc_print_dimm()
authorDavid S. Miller <davem@davemloft.net>
Wed, 11 Feb 2009 08:54:07 +0000 (00:54 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 11 Feb 2009 08:54:07 +0000 (00:54 -0800)
Return was missing for the case where there is no dimm
info match.

Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/kernel/chmc.c

index 3b9f4d6e14a9d3119a939e7b5edfc3aec30c554b..e1a9598e2a4db8b0c0cc36aca1c7ac5addb1dbc5 100644 (file)
@@ -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;