]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerTony Luck <tony.luck@intel.com>
Tue, 4 Jan 2022 17:08:00 +0000 (09:08 -0800)
commit6fd974aaf3313b6f71b68ff58372eab46729c1e4
treef0a0e5bb84c7c0930966146269792e03c7581e2c
parent74f6f7f3f18bd972739c360154bc61c16ea32d72
EDAC/i10nm: Release mdev/mbase when failing to detect HBM

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: 2ad7e8e0ad48 ("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
drivers/edac/i10nm_base.c