drm/radeon/pm: don't walk the crtc list before it has been initialized (v2)
authorAlex Deucher <alexdeucher@gmail.com>
Tue, 15 Apr 2014 16:44:33 +0000 (12:44 -0400)
committerChristian König <christian.koenig@amd.com>
Tue, 22 Apr 2014 14:51:19 +0000 (16:51 +0200)
commit3ed9a335cfc64b2c83545f341cdddf2347b12b97
tree36079e60371cc6f7b68916e518dd20077f33cc31
parentcb3e4e7c59e4b43ac378631f6101f5c8de3a27a5
drm/radeon/pm: don't walk the crtc list before it has been initialized (v2)

Avoids a crash in certain cases when thermal irqs are generated
before the display structures have been initialized.

v2: fix the vblank and vrefresh helpers as well

bug:
https://bugzilla.kernel.org/show_bug.cgi?id=73931

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/radeon/r600_dpm.c
drivers/gpu/drm/radeon/radeon_pm.c