diff options
author | Pixel Ding <Pixel.Ding@amd.com> | 2017-04-25 16:47:42 +0800 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-05-05 18:15:21 -0400 |
commit | db2c2a9798d266fd1d7c950b3937793b05533bf4 (patch) | |
tree | 9646993993844fc8aed99c74f0c9d0ee635a58fc /drivers/gpu | |
parent | 7b52db39a4c27c0020ff953a4bb0aa8bbe55e4a2 (diff) | |
download | blackbird-op-linux-db2c2a9798d266fd1d7c950b3937793b05533bf4.tar.gz blackbird-op-linux-db2c2a9798d266fd1d7c950b3937793b05533bf4.zip |
drm/amdgpu: fix mutex list null pointer reference
Fix NULL pointer reference.
Signed-off-by: Pixel Ding <Pixel.Ding@amd.com>
Signed-off-by: Xiangliang Yu <Xiangliang.Yu@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c index 367811cd0763..43ca16b6eee2 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c @@ -2065,7 +2065,8 @@ void amdgpu_device_fini(struct amdgpu_device *adev) DRM_INFO("amdgpu: finishing device.\n"); adev->shutdown = true; - drm_crtc_force_disable_all(adev->ddev); + if (adev->mode_info.mode_config_initialized) + drm_crtc_force_disable_all(adev->ddev); /* evict vram memory */ amdgpu_bo_evict_vram(adev); amdgpu_ib_pool_fini(adev); |