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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 7 Jun 2014 17:28:14 +0000 (10:28 -0700)
commitc530d3e43f61db68b29e9c2e6d5aa8fd073ca79d
tree0da268b58f58d96ff89129a25e039a8dc58d6581
parentf9822c158e4a573cff2eeaa39c7054716bf6c375
drm/radeon/pm: don't walk the crtc list before it has been initialized (v2)

commit 3ed9a335cfc64b2c83545f341cdddf2347b12b97 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/radeon/r600_dpm.c
drivers/gpu/drm/radeon/radeon_pm.c