radeon/pm: Guard access to rdev->pm.power_state array
authorMichel Dänzer <michel.daenzer@amd.com>
Wed, 8 Jan 2014 02:40:20 +0000 (11:40 +0900)
committerBen Hutchings <ben@decadent.org.uk>
Tue, 1 Apr 2014 23:58:42 +0000 (00:58 +0100)
commit3d42de37001784d4e00c2e2cd6e4fdb983a76e21
tree2933717bb1f248b29e09a2b0f54e66f1cee60869
parent09c18c601e918a88c431cf4e540eafa5bc25fcc1
radeon/pm: Guard access to rdev->pm.power_state array

commit 370169516e736edad3b3c5aa49858058f8b55195 upstream.

It's never allocated on systems without an ATOMBIOS or COMBIOS ROM.

Should fix an oops I encountered while resetting the GPU after a lockup
on my PowerBook with an RV350.

Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/gpu/drm/radeon/radeon_pm.c