OSDN Git Service

amdgpu: Only destroy fbdev framebuffer if it was initialized
authorMichel Dänzer <michel.daenzer@amd.com>
Mon, 11 Sep 2017 08:04:41 +0000 (17:04 +0900)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 13 Sep 2017 16:10:11 +0000 (12:10 -0400)
commita072c5f896beba806b4b867d478e1b90f94ba29b
tree1e704724bac4b107ab89527de02d7bd2ac47239b
parentc9232d9ee85fade8a2020efe9f3bf64cdbbc6347
amdgpu: Only destroy fbdev framebuffer if it was initialized

Fixes crash when trying to unload the amdgpu module before the fbdev
framebuffer was initialized, which can happen since the DRM fbdev helper
code supports deferred setup.

Acked-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c