mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
EDAC, amd64: Free unused memory when init_one_instance() fails
Jump to memory freeing routines when init_one_instance() fails. Signed-off-by: Yazen Ghannam <[email protected]> Cc: linux-edac <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Borislav Petkov <[email protected]>
This commit is contained in:
parent
67d7fd306e
commit
2b9b2c4659
1 changed files with 2 additions and 0 deletions
|
|
@ -3363,6 +3363,8 @@ static int probe_one_instance(unsigned int nid)
|
|||
|
||||
if (boot_cpu_data.x86 < 0x17)
|
||||
restore_ecc_error_reporting(s, nid, F3);
|
||||
|
||||
goto err_enable;
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
|
|
|||
Loading…
Reference in a new issue