Commit 68fa24f9 authored by Christophe JAILLET's avatar Christophe JAILLET Committed by Borislav Petkov

EDAC, mv64x60: Fix an error handling path

We should not call edac_mc_del_mc() if a corresponding call to
edac_mc_add_mc() has not been performed yet.

So here, we should go to err instead of err2 to branch at the right
place of the error handling path.
Signed-off-by: default avatarChristophe JAILLET <>
Cc: linux-edac <>
Link: default avatarBorislav Petkov <>
parent 86a18ee2
......@@ -758,7 +758,7 @@ static int mv64x60_mc_err_probe(struct platform_device *pdev)
/* Non-ECC RAM? */
printk(KERN_WARNING "%s: No ECC DIMMs discovered\n", __func__);
res = -ENODEV;
goto err2;
goto err;
edac_dbg(3, "init mci\n");
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment