Revert "drm/amd/amdgpu: Fix potential ioremap() memory leaks in amdgpu_device_init()"
authorMa Jun <Jun.Ma2@amd.com>
Tue, 19 Mar 2024 07:24:03 +0000 (15:24 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 13 Apr 2024 11:10:12 +0000 (13:10 +0200)
commitaa665c3a2aca2ffe31b9645bda278e96dfc3b55c
tree03f9ffe89e89988f0de45590ca9bcb2fdb37712d
parentdd0ad4883ce485d2b1c25fd5307919796bd04cab
Revert "drm/amd/amdgpu: Fix potential ioremap() memory leaks in amdgpu_device_init()"

commit 03c6284df179de3a4a6e0684764b1c71d2a405e2 upstream.

This patch causes the following iounmap erorr and calltrace
iounmap: bad address 00000000d0b3631f

The original patch was unjustified because amdgpu_device_fini_sw() will
always cleanup the rmmio mapping.

This reverts commit eb4f139888f636614dab3bcce97ff61cefc4b3a7.

Signed-off-by: Ma Jun <Jun.Ma2@amd.com>
Suggested-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c