drm/amdgpu: unmap register bar on device init failure
authorAlex Deucher <alexander.deucher@amd.com>
Wed, 16 Sep 2020 14:28:55 +0000 (10:28 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 17 Sep 2020 22:00:08 +0000 (18:00 -0400)
commit4192f7b5768912ceda82be2f83c87ea7181f9980
treecb7ad1fa625360ed4ece9b8fe283aa9f8427ac5d
parentb6c91dadaffee8bf253b0b5ac26a2638c388c6c6
drm/amdgpu: unmap register bar on device init failure

We never unmapped the regiser BAR on failure.

Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c