EDAC/i10nm: Release mdev/mbase when failing to detect HBM
authorQiuxu Zhuo <qiuxu.zhuo@intel.com>
Fri, 24 Dec 2021 09:11:26 +0000 (04:11 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 11 Jan 2022 14:35:15 +0000 (15:35 +0100)
commita0827557039225a17a0cd479b944b37ed99f34d0
tree03aad06ede6dc6dddcc022138d99650eb5b80892
parent3400aa7eda64d4e27160563f9bb73c825d2488cf
EDAC/i10nm: Release mdev/mbase when failing to detect HBM

commit c370baa328022cbd46c59c821d1b467a97f047be upstream.

On systems without HBM (High Bandwidth Memory) mdev/mbase are not
released/unmapped.

Add the code to release mdev/mbase when failing to detect HBM.

[Tony: re-word commit message]

Cc: <stable@vger.kernel.org>
Fixes: c945088384d0 ("EDAC/i10nm: Add support for high bandwidth memory")
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Qiuxu Zhuo <qiuxu.zhuo@intel.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Link: https://lore.kernel.org/r/20211224091126.1246-1-qiuxu.zhuo@intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/edac/i10nm_base.c