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)
committerBorislav Petkov <bp@suse.de>
Sun, 17 Jun 2018 10:23:33 +0000 (12:23 +0200)
commit9d72fe1ce81bc757ecb6d57b58e5fd95b9ad1b26
tree86eb833aaf63460b92fbca672ed2cac9df5d8069
parentce397d215ccd07b8ae3f71db689aedb85d56ab40
EDAC, altera: Fix an error handling path in altr_s10_sdram_probe()

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>
drivers/edac/altera_edac.c