Re: [PATCH] EDAC, mv64x60: Fix an error handling path

2018-01-09 Thread Borislav Petkov
On Sun, Jan 07, 2018 at 09:54:00PM +0100, Christophe JAILLET wrote: > 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. > > S

[PATCH] EDAC, mv64x60: Fix an error handling path

2018-01-07 Thread Christophe JAILLET
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 --- drivers/edac/mv64x60_edac.c | 2 +- 1 file