- Make sure the memory-mapped memory controller registers BAR gets unmapped
  when the driver memory allocation fails. Fix that in both x38 and i3200 EDAC
  drivers as former has copied the bug from the latter, it looks like
EDAC/x38: Fix a resource leak in x38_probe1()

If edac_mc_alloc() fails, also unmap the window.

  [ bp: Use separate labels, turning it into the classic unwind pattern. ]

Fixes: df8bc08c192f ("edac x38: new MC driver module")
Signed-off-by: Haoxiang Li <lihaoxiang@isrc.iscas.ac.cn>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Cc: stable@vger.kernel.org
Link: https://patch.msgid.link/20251223124350.1496325-1-lihaoxiang@isrc.iscas.ac.cn
1 file changed