]> Git Repo - linux.git/commitdiff
EDAC, mv64x60: Fix an error handling path
authorChristophe JAILLET <[email protected]>
Sun, 7 Jan 2018 20:54:00 +0000 (21:54 +0100)
committerBorislav Petkov <[email protected]>
Tue, 9 Jan 2018 19:14:23 +0000 (20:14 +0100)
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: Christophe JAILLET <[email protected]>
Cc: linux-edac <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Borislav Petkov <[email protected]>
drivers/edac/mv64x60_edac.c

index ec5d695bbb7264d0fffd8d3d8eaf74a0d2a66905..3c68bb525d5da3aa9c41c512e14fde1acf7cf0cd 100644 (file)
@@ -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");
This page took 0.060169 seconds and 4 git commands to generate.