]> git.baikalelectronics.ru Git - kernel.git/commit
EDAC, mv64x60: Fix an error handling path
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 7 Jan 2018 20:54:00 +0000 (21:54 +0100)
committerBorislav Petkov <bp@suse.de>
Tue, 9 Jan 2018 19:14:23 +0000 (20:14 +0100)
commitf3b4c5c30f7c404e0f6651e32c1f476eb6a2a508
tree7824690aeacb65c025417b40388fe03be9b15218
parentf889250aefb209598cc36959b998c52903f2415f
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: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Cc: linux-edac <linux-edac@vger.kernel.org>
Link: http://lkml.kernel.org/r/20180107205400.14068-1-christophe.jaillet@wanadoo.fr
Signed-off-by: Borislav Petkov <bp@suse.de>
drivers/edac/mv64x60_edac.c