OSDN Git Service

EDAC, altera: Fix an error handling path in altr_s10_sdram_probe()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 10 Jun 2018 17:45:32 +0000 (19:45 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Oct 2018 23:59:16 +0000 (16:59 -0700)
commitfff64d9fb3817fee88ce211bd4fef94558d877be
treee257b2f928255ce000d30962f3d68846a94d3c52
parent0855e6e1ac14f7e7f742e70bf9bbc6a1cdf0769e
EDAC, altera: Fix an error handling path in altr_s10_sdram_probe()

[ Upstream commit 9d72fe1ce81bc757ecb6d57b58e5fd95b9ad1b26 ]

If regmap_write() fails, we should release some resources as done in all
the other error handling paths of the function.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Thor Thayer <thor.thayer@linux.intel.com>
Cc: linux-edac <linux-edac@vger.kernel.org>
Link: http://lkml.kernel.org/r/20180610174532.22071-1-christophe.jaillet@wanadoo.fr
Fixes: e9918d7fafae ("EDAC, altera: Handle SDRAM Uncorrectable Errors on Stratix10")
Signed-off-by: Borislav Petkov <bp@suse.de>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/edac/altera_edac.c